From e62ab72b3b88e7bdfd5927647c8620e9a1f82f85 Mon Sep 17 00:00:00 2001 From: Adam Saparudin Date: Thu, 24 Jan 2019 23:43:53 +0700 Subject: [PATCH 1/2] Add _in array query example --- docs/3.x.x/guides/filters.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/3.x.x/guides/filters.md b/docs/3.x.x/guides/filters.md index 315401fd59..98a809b799 100644 --- a/docs/3.x.x/guides/filters.md +++ b/docs/3.x.x/guides/filters.md @@ -19,6 +19,7 @@ The available operators are separated in four different categories: Easily filter results according to fields values. - `=`: Equals + - `_in`: Include in array - `_ne`: Not equals - `_lt`: Lower than - `_gt`: Greater than @@ -37,6 +38,9 @@ Find products having a price equal or greater than `3`. `GET /products?price_gte=3` +Find multiple product with id 3, 6, 8 +`GET /products?id_in=3&id_in=6&id_in=8` + ::: note You can't use filter to have specific results inside relation, like "Find users and only their posts older than yesterday" as example. If you need it, you can modify or create your own service or use [GraphQL](./graphql.md#query-api). ::: From 9539182768104a146ab4b3156f3692d4f0297ce2 Mon Sep 17 00:00:00 2001 From: Jim LAURIE Date: Sat, 26 Jan 2019 18:52:27 +0100 Subject: [PATCH 2/2] Change in order --- docs/3.x.x/guides/filters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/3.x.x/guides/filters.md b/docs/3.x.x/guides/filters.md index 98a809b799..c4760cfc01 100644 --- a/docs/3.x.x/guides/filters.md +++ b/docs/3.x.x/guides/filters.md @@ -19,12 +19,12 @@ The available operators are separated in four different categories: Easily filter results according to fields values. - `=`: Equals - - `_in`: Include in array - `_ne`: Not equals - `_lt`: Lower than - `_gt`: Greater than - `_lte`: Lower than or equal to - `_gte`: Greater than or equal to + - `_in`: Include in array - `_contains`: Contains - `_containss`: Contains case sensitive