Skip to content

Braga has been retired. The next public testnet is coming in September 2026. Read the announcement →

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.

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: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.

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