Skip to content

or(predicates): Predicate

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

Creates an OR predicate

Predicate[]

The predicates to combine

Predicate

The OR predicate

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