Skip to content
Developerhome

Filters

  Less than to read

It is possible to apply filters to custom fields with the following syntax: _customData and marketingDate.

When you apply a filter, _eq and the value must be between double escaped quotes.

The following example displays how a filter is applied to a custom field:

{
    xtremMasterData { 
        item { 
            query( 
            filter: "{\"_customData\":{\"marketingDate\":{\"_eq\":\"2023-08-17\"}}}") 
            { 
                edges { 
                    node { 
                        id 
                        _customData 
                    } 
                cursor 
                } 
            } 
        } 
    }
}
{ 
  "data": { 
    "xtremMasterData": { 
      "item": { 
        "query": { 
          "edges": [ 
            { 
              "node": { 
                "id": "PIE_BLUEBERRY", 
                "_customData": "{\"rating\":28,\"marketingDate\":\"2023-08-17\"}" 
              } 
            } 
          ] 
        } 
      } 
    }
  }
}