mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Merge pull request #2689 from adamsaparudin/patch-1
Add _in array query example
This commit is contained in:
commit
eebfbed0e9
@ -24,6 +24,7 @@ Easily filter results according to fields values.
|
||||
- `_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
|
||||
|
||||
@ -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).
|
||||
:::
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user