Skip to content

Commit 5067f74

Browse files
authored
Merge pull request #430 from guillaumedelre/feature/fix-doc-exists-filter
fixed small typo in Exists Filter
2 parents 4844ac2 + 31890ee commit 5067f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/filters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ You can filter offers by joining two values, for example: `/offers?price[gt]=12.
357357

358358
The exists filter allows you to select items based on nullable field value.
359359

360-
Syntax: `?exists[property]=<true|false|1|0>`
360+
Syntax: `?property[exists]=<true|false|1|0>`
361361

362362
Enable the filter:
363363

@@ -381,7 +381,7 @@ class Offer
381381
}
382382
```
383383

384-
Given that the collection endpoint is `/offers`, you can filter offers on nullable field with the following query: `/offers?exists[transportFees]=true`.
384+
Given that the collection endpoint is `/offers`, you can filter offers on nullable field with the following query: `/offers?transportFees[exists]=true`.
385385

386386
It will return all offers where `transportFees` is not `null`.
387387

0 commit comments

Comments
 (0)