Skip to content

or(predicates): Predicate

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

Creates an OR predicate

Predicate[]

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

Predicate

The OR predicate

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

or(…predicates): Predicate

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

Creates an OR predicate

Predicate[]

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

Predicate

The OR predicate

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