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 | |
|---|---|---|---|
bool | yes | no | no |
i32 u256 dec | yes | yes | no |
str | yes | no | yes |
addr key bytes32 | yes | no | no |
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UnsupportedOperatorError(
attributeName,operator,tag,hint?):UnsupportedOperatorError
Defined in: src/query/errors.ts:25
Parameters
Section titled “Parameters”attributeName
Section titled “attributeName”string
operator
Section titled “operator”string
"bool" | "i32" | "u64" | "u256" | "dec" | "bytes32" | "bytes" | "str" | "addr" | "key"
string
Returns
Section titled “Returns”UnsupportedOperatorError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”attributeName
Section titled “attributeName”
readonlyattributeName:string
Defined in: src/query/errors.ts:19
The attribute the predicate names.
operator
Section titled “operator”
readonlyoperator:string
Defined in: src/query/errors.ts:21
The operator, as it would have been written in the query.
readonlytag:"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.