Skip to content

and(predicates): Predicate

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

Creates an AND predicate

Predicate[]

The predicates to combine

Predicate

The AND predicate

const predicates = [eq("name", "John"), eq("age", 30)]
const result = and(predicates)
// result = { type: "and", predicates: [eq("name", "John"), eq("age", 30)] }