Open ghillert opened 3 years ago
Note that these can already be globally defined here https://micronaut-projects.github.io/micronaut-data/latest/guide/configurationreference.html#io.micronaut.data.runtime.config.DataConfiguration.PageableConfiguration
Seems odd to want different behaviour per controller, but ok
One reason we'd want this is if different controllers use different sort by fields. Granted, at that point, you're not running as much of a microservice...
As Micronaut provides the ability to handle
io.micronaut.data.model.Pageable
as a controller parameter, it would be useful to also add support for:That way sensible defaults can be defined on a per-controller basis.