function

Equal

Match an equal scalar or null.

Example

go
query.Equal("status", "published")

Arguments

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

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.

  • Operand

    A value that Equal, NotEqual, and In compare with a field.

  • Expression

    A sealed immutable predicate consumed atomically by stores.

Related guides