function

In

Match any supplied operand.

Example

go
query.In("color", "red", "blue")

Arguments

ArgumentTypeDescription
pathPThe field, as a dot-separated name such as "seo.title" or a Path.
values[]VThe accepted values. Spread a slice with values.... With none, nothing matches.

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.