backand

Backand - Add two filters to a GET request


I'm doing a GET request to /objects/items and i want to filter the request on both:

[{ "fieldName": "title", "operator": "equals", "value": "someItem" }]

AND

[{ "fieldName": "description", "operator": "equals", "value": "someDescription" }]

Is this possible? Can only get it to work with one filter. Or any other way you can filter on the two in one api call?

enter image description here


Solution

  • The filter is an array that every item create an AND operator, so all you need is to join the {}, like this:

    [{ "fieldName": "title", "operator": "equals", "value": "someItem" },
     { "fieldName": "description", "operator": "equals", "value":"someDescription" }]