Skip to content

gt<N, V>(name, value): ComparisonNode<ValueRef<N, V>>

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

Attribute is greater than value, in index order — see ComparisonOperator.

N extends string

V extends PredicateValue

N

V

ComparisonNode<ValueRef<N, V>>

If the name is outside the attribute name grammar.

If the name starts with $ but is not a queryable system attribute, a system attribute is compared against the wrong type, or the value is bytes.

gt("level", i32(10)) // level > i32(10)
gt("$expiresAt", u64(1_200_000n)) // $expiresAt > u64(1200000)