Create a tag filter for exact matching on tag fields.
This is a convenience function that provides a fluent API for building tag filters. Tag filters are used for exact-match categorical filtering.
Tag(field: string): __type| Name | Type | Description |
|---|---|---|
field* | string |
The name of the tag field to filter on
// Single value match
const filter = Tag("category").eq("electronics");
// Multiple values (OR logic)
const filter = Tag("category").eq(["electronics", "books"]);
// Negation
const filter = Tag("status").ne("archived");
// Combine with other filters
const complexFilter = Tag("category").eq("electronics")
.and(Num("price").lt(100));