Skip to content

and(expressions): Expression

Defined in: src/query/expression.ts:386

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.

readonly Expression[]

The expressions, as separate arguments or one array.

Expression

If given nothing to combine.

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

and(…expressions): Expression

Defined in: src/query/expression.ts:387

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.

…Expression[]

The expressions, as separate arguments or one array.

Expression

If given nothing to combine.

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