function
In
Match any supplied operand.
Example
query.In("color", "red", "blue")Arguments
| Argument | Type | Description |
|---|---|---|
path | P | The field, as a dot-separated name such as "seo.title" or a Path. |
values | []V | The accepted values. Spread a slice with values.... With none, nothing matches. |
Returns
The declared result.
ExpressionFull signature
func In[P FieldPath, V Operand](
path P,
values ...V,
) ExpressionRelated types
FieldPathA field name in a filter or sort: a string such as "seo.title", or a Path.
OperandA value that Equal, NotEqual, and In compare with a field.
ExpressionA sealed immutable predicate consumed atomically by stores.