Skip to content

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

UnsupportedOperatorError

Defined in: src/query/errors.ts:17

A predicate asked for an operator the query language does not define for that type.

The operator × type matrix is part of the language, not a policy: a range comparison on an equality-only type is a parse error at the node, not an empty result. Catching it here turns a round trip and an RPC error code into a stack trace pointing at the call site.

= !=< <= > >=STARTSWITH
boolyesnono
i32 u256 decyesyesno
stryesnoyes
addr key bytes32yesnono
  • Error

new UnsupportedOperatorError(attributeName, operator, tag, hint?): UnsupportedOperatorError

Defined in: src/query/errors.ts:25

string

string

"bool" | "i32" | "u64" | "u256" | "dec" | "bytes32" | "bytes" | "str" | "addr" | "key"

string

UnsupportedOperatorError

Error.constructor

readonly attributeName: string

Defined in: src/query/errors.ts:19

The attribute the predicate names.


readonly operator: string

Defined in: src/query/errors.ts:21

The operator, as it would have been written in the query.


readonly tag: "bool" | "i32" | "u64" | "u256" | "dec" | "bytes32" | "bytes" | "str" | "addr" | "key"

Defined in: src/query/errors.ts:23

The type of the value it was applied to.