From 124722ef09daecb66bd5346ca0ffa385e21731ed Mon Sep 17 00:00:00 2001 From: Frank Dekker Date: Sun, 13 Oct 2024 23:27:43 +0200 Subject: [PATCH] feat(filter): Allow for comma-separated values in NumericFilter --- core/filters.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/filters.md b/core/filters.md index 801a86bacc5..66ce9634769 100644 --- a/core/filters.md +++ b/core/filters.md @@ -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.