whereDoesntHave<TChild> method

S whereDoesntHave<TChild>(
  1. MssqlRelation<TRow, TChild> relation(
    1. TFields fields
    )
)

Keeps parents that have no matching related row.

Implementation

S whereDoesntHave<TChild>(
  MssqlRelation<TRow, TChild> Function(TFields fields) relation,
) {
  final rel = relation(fields);
  return where((_) => MssqlExistsSubquery(_existsQuery(rel), negated: true));
}