and
Call Signature
Section titled “Call Signature”and(
expressions):Expression
Defined in: src/query/expression.ts:379
All of these must hold.
A single expression is returned unwrapped, so building a conjunction from a filtered list does not litter the query with redundant nesting.
Parameters
Section titled “Parameters”expressions
Section titled “expressions”readonly Expression[]
The expressions, as separate arguments or one array.
Returns
Section titled “Returns”Throws
Section titled “Throws”If given nothing to combine.
Example
Section titled “Example”and(gte("level", i32(10)), eq("status", "open"))and(filters) // an array works tooCall Signature
Section titled “Call Signature”and(…
expressions):Expression
Defined in: src/query/expression.ts:380
All of these must hold.
A single expression is returned unwrapped, so building a conjunction from a filtered list does not litter the query with redundant nesting.
Parameters
Section titled “Parameters”expressions
Section titled “expressions”…Expression[]
The expressions, as separate arguments or one array.
Returns
Section titled “Returns”Throws
Section titled “Throws”If given nothing to combine.
Example
Section titled “Example”and(gte("level", i32(10)), eq("status", "open"))and(filters) // an array works too