Skip to content

Commit

Permalink
Merge pull request #60 from marmelab/document-operators
Browse files Browse the repository at this point in the history
Document operators
  • Loading branch information
fzaninotto authored Jan 23, 2023
2 parents 2261822 + 90a68eb commit 69cb5b3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,22 @@ Operators are specified as suffixes on each filtered field. For instance, applyi

GET /books?filter={"author_q":['Gibson']} // return books where author includes 'Gibson' not considering the other fields

- `_lt`: check for items that has a value lower than the provided value

GET /books?filter={"price_lte":100} // return books that have a price lower that 100

- `_lte`: check for items that has a value lower or equal than the provided value

GET /books?filter={"price_lte":100} // return books that have a price lower or equal to 100

- `_gt`: check for items that has a value greater than the provided value

GET /books?filter={"price_gte":100} // return books that have a price greater that 100

- `_gte`: check for items that has a value greater or equal than the provided value

GET /books?filter={"price_gte":100} // return books that have a price greater or equal to 100

## Usage and Configuration

```js
Expand Down

0 comments on commit 69cb5b3

Please sign in to comment.