function isPredicateSubset(subset, superset): boolean;
function isPredicateSubset(subset, superset): boolean;
Defined in: packages/db/src/query/predicate-utils.ts:801
Check if one predicate (where + orderBy + limit) is a subset of another. Returns true if all aspects of the subset predicate are satisfied by the superset.
The predicate requirements to check
The predicate that might satisfy the requirements
boolean
true if subset is satisfied by superset
isPredicateSubset(
{ where: gt(ref('age'), val(20)), limit: 10 },
{ where: gt(ref('age'), val(10)), limit: 20 }
) // true
isPredicateSubset(
{ where: gt(ref('age'), val(20)), limit: 10 },
{ where: gt(ref('age'), val(10)), limit: 20 }
) // true
