Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(filter): Allow for comma-separated values in NumericFilter #2037

Open
wants to merge 1 commit into
base: 4.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions core/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,10 @@ Given that the collection endpoint is `/offers`, you can filter offers with the

It will return all offers with `sold` equals `1`.

Search for offers with multiple numeric values with the following query: `/offers?price[]=100&price[]=200` or `/offers?price=100,200`.

It will return all offers with `price` equals `100` or `200`.

### Range Filter

The range filter allows you to filter by a value lower than, greater than, lower than or equal, greater than or equal and between two values.
Expand Down