Easy filter code

<aside> 💡 Tip: To easily get the code for a filter, you can run the filter in Beacon and copy the code from your browser’s console.

  1. Go to the ‘Network’ panel when viewing a list page
  2. Add your filter
  3. Click on the 'entities-graphql’ entry that appears
  4. Click through to the ‘Payload’ pane where you’ll see the filter included

</aside>

Basic format

{
  "filter_conditions": [
    {
      "field": "field_name",
      "operator": "operator",
      "value": "value",
    }
  ],
  "filter_strictness": "all"
}

Field types

Short text / Email / Phone number / URL

is

"operator": "==",
"value": "abc"

is not

"operator": "!=",
"value": "abc"

starts with

operator: "starts_with", 
value: "abc"

ends with

operator: "ends_with", 
value: "abc"

contains

"operator": "contains",
"value": "abc"