Skip to content

and(predicates): Predicate

Defined in: src/query/predicate.ts:43

Creates an AND predicate

Predicate[]

The predicates to combine, either as a single array or as separate arguments

Predicate

The AND predicate

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)] }

and(…predicates): Predicate

Defined in: src/query/predicate.ts:44

Creates an AND predicate

Predicate[]

The predicates to combine, either as a single array or as separate arguments

Predicate

The AND predicate

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)] }