diff --git a/core/filters.md b/core/filters.md index 0a7868e06b0..410ae1fa82e 100644 --- a/core/filters.md +++ b/core/filters.md @@ -519,6 +519,28 @@ It will return all offers with `price` between 12.99 and 15.99. You can filter offers by joining two values, for example: `/offers?price[gt]=12.99&price[lt]=19.99`. +### Uuid Range Filter + +In case you want to filter based on UUIDs (V1 and V6) you'll need to use the `UuidRangeFilter` instead of the `RangeFilter`. +The syntax and behaviour is the same as the normal `RangeFilter`: + +```php + 'id', 'direction' => 'DESC'] + ] +)] +#[ApiFilter(UuidRangeFilter::class, properties: ["id"])] +#[ApiFilter(OrderFilter::class, properties: ["id" => "DESC"])] +class Book +{ + // ... +} +``` + To know more about cursor-based pagination take a look at [this blog post on medium (draft)](https://medium.com/@sroze/74fd1d324723). ## Controlling The Behavior of The Doctrine ORM Paginator