Exists

This checks whether any rows exist which match the criteria.

>>> await Band.exists().where(Band.name == 'Pythonistas')
True

Query clauses

where

See where.