h_r
July 8, 2020, 3:37pm
1
I’m trying to build a query that returns all items whose path do NOT contain a string.
I can easily build one that returns items whose path does contain a string:
GET /url?filter[path][CONTAINS]=string
But how can I negate that filter (i.e. ask “return everything the DOES NOT CONTAIN something”)?
jelhan
July 13, 2020, 8:48pm
2
You have asked the exact same question at the same date on StackOverflow as well: https://stackoverflow.com/questions/62786702/how-to-negate-a-filter-with-jsonapi-requests-in-drupal I have answered it there.
h_r
July 13, 2020, 11:32pm
3
Yes, I did - and your answer was much appreciated! (As a quick summary: I am using Drupal’s JSON:API module, and it does not implement any “does not contain” operator)