function

NotEqual

Exclude an equal scalar or null.

Example

go
query.NotEqual("status", "draft")

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.

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.