Skip to content

Commit

Permalink
added example with filter by not null
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoV committed Dec 11, 2023
1 parent 546d055 commit fac5c91
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/filtering.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,18 @@ You can also use boolean combination of operations:
Accept: application/vnd.api+json


In case you need to filter a field that can be null the filter will look like this
Filtering records by a field that is null

.. sourcecode:: http

GET /user?filter=[{"name":"name","op":"is","val":null}] HTTP/1.1
GET /user?filter=[{"name":"name","op":"is_","val":null}] HTTP/1.1
Accept: application/vnd.api+json

Filtering records by a field that is not null

.. sourcecode:: http

GET /user?filter=[{"name":"name","op":"isnot","val":null}] HTTP/1.1
Accept: application/vnd.api+json


Expand Down

0 comments on commit fac5c91

Please sign in to comment.