function
Equal
Match an equal scalar or null.
Example
query.Equal("status", "published")Arguments
| Argument | Type | Description |
|---|---|---|
path | P | The field, as a dot-separated name such as "seo.title" or a Path. |
value | V | A string, boolean, integer, float, named type of one, or a Value such as Null(). |
Returns
The declared result.
ExpressionFull signature
func Equal[P FieldPath, V Operand](
path P,
value 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.