Skip to main content

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.

Example

In this example we want to remove all items from our list that has the value TODO.

A screenshot showing the Filter mutation.
Filter Mutation Example