and
Call Signature
Section titled “Call Signature”and<
E>(expressions):Expression<RefsOf<E[number]>>
Defined in: src/query/expression.ts:506
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.
Type Parameters
Section titled “Type Parameters”E extends readonly Expression<AttributeRef>[]
Parameters
Section titled “Parameters”expressions
Section titled “expressions”E
The expressions, as separate arguments or one array.
Returns
Section titled “Returns”Expression<RefsOf<E[number]>>
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<
E>(…expressions):Expression<RefsOf<E[number]>>
Defined in: src/query/expression.ts:509
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.
Type Parameters
Section titled “Type Parameters”E extends readonly Expression<AttributeRef>[]
Parameters
Section titled “Parameters”expressions
Section titled “expressions”…E
The expressions, as separate arguments or one array.
Returns
Section titled “Returns”Expression<RefsOf<E[number]>>
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