Skip to content

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.

E extends readonly Expression<AttributeRef>[]

E

The expressions, as separate arguments or one array.

Expression<RefsOf<E[number]>>

If given nothing to combine.

and(gte("level", i32(10)), eq("status", "open"))
and(filters) // an array works too

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.

E extends readonly Expression<AttributeRef>[]

…E

The expressions, as separate arguments or one array.

Expression<RefsOf<E[number]>>

If given nothing to combine.

and(gte("level", i32(10)), eq("status", "open"))
and(filters) // an array works too