and
Call Signature
Section titled “Call Signature”and(
predicates):Predicate
Defined in: src/query/predicate.ts:43
Creates an AND predicate
Parameters
Section titled “Parameters”predicates
Section titled “predicates”The predicates to combine, either as a single array or as separate arguments
Returns
Section titled “Returns”The AND predicate
Example
Section titled “Example”const result = and(eq("name", "John"), eq("age", 30))// or equivalently: and([eq("name", "John"), eq("age", 30)])// result = { type: "and", predicates: [eq("name", "John"), eq("age", 30)] }Call Signature
Section titled “Call Signature”and(…
predicates):Predicate
Defined in: src/query/predicate.ts:44
Creates an AND predicate
Parameters
Section titled “Parameters”predicates
Section titled “predicates”…Predicate[]
The predicates to combine, either as a single array or as separate arguments
Returns
Section titled “Returns”The AND predicate
Example
Section titled “Example”const result = and(eq("name", "John"), eq("age", 30))// or equivalently: and([eq("name", "John"), eq("age", 30)])// result = { type: "and", predicates: [eq("name", "John"), eq("age", 30)] }