UnsupportedOperatorError
Defined in: src/query/errors.ts:16
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 prefix test on a type other
than str is a type error at the node (a QueryError of kind "type"), 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.
= < <= > >= BETWEEN | STARTSWITH | |
|---|---|---|
str | yes | yes |
| every other indexable type | yes | 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:24
Parameters
Section titled “Parameters”attributeName
Section titled “attributeName”string
operator
Section titled “operator”string
"bool" | "bytes" | "key" | "i32" | "u64" | "u256" | "dec" | "str" | "addr"
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:18
The attribute the predicate names.
operator
Section titled “operator”
readonlyoperator:string
Defined in: src/query/errors.ts:20
The operator, as it would have been written in the query.
readonlytag:"bool"|"bytes"|"key"|"i32"|"u64"|"u256"|"dec"|"str"|"addr"
Defined in: src/query/errors.ts:22
The type of the value it was applied to.