Appearance
Filter Mutation ​
The Filter mutation allows you to selectively include or exclude items from a list based on specific conditions. This is useful for curating lists like tags, authors, or other attributes.
Options ​
- Operation: Choose between keep to include items or remove to exclude items.
- Condition: The type of match to use: equals, includes, starts with or ends with.
- Value to filter by: The value or product attribute to match against.
To filter a list of objects by an attribute, or to use the empty, not empty, greater than and less than conditions, use Filter objects.
Example ​
In this example we want to remove all items from our list that has the value TODO.
