existenceQuery method
ModelQuery<R>
existenceQuery(
- ModelDefinition<
Model> parent, - DatabaseManager db, {
- required String parentTable,
correlated against the parent table as parentTable names it (an
alias inside a self-relation subquery). The built-in relations alias
their own table when it has the parent's name (categories whose
children are categories); custom relations fall back to
correlated.
Implementation
ModelQuery<R> existenceQuery(
ModelDefinition<Model> parent,
DatabaseManager db, {
required String parentTable,
}) => correlated(parent, db);