function

GreaterThan

Match a string or number above the operand.

Example

go
query.GreaterThan("price", 10)

Arguments

ArgumentTypeDescription
pathPThe field, as a dot-separated name such as "seo.title" or a Path.
valueVA string, integer, float, named type of one, or a Value holding one.

Returns

The declared result.

Expression

Full signature

Related types

  • FieldPath

    A field name in a filter or sort: a string such as "seo.title", or a Path.

  • Ordered

    A value that greater-than and less-than comparisons accept.

  • Expression

    A sealed immutable predicate consumed atomically by stores.