or
Call Signature
Section titled “Call Signature”or(
predicates):Predicate
Defined in: src/query/predicate.ts:26
Creates an OR 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 OR predicate
Example
Section titled “Example”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)] }Call Signature
Section titled “Call Signature”or(…
predicates):Predicate
Defined in: src/query/predicate.ts:27
Creates an OR 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 OR predicate
Example
Section titled “Example”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)] }