How to use CursoredPageable on a Controller? #3148
radovanradic
started this conversation in
General
Replies: 2 comments 2 replies
-
I think this is a bug, there is no mechanism to bind |
Beta Was this translation helpful? Give feedback.
0 replies
-
The problem is that persisting a cursor solution can be very opinionated. You might want to do hash64, include the query parameters, or maybe do JSON; there are many options. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discussed in #3144
Originally posted by rafaelrenanpacheco September 24, 2024
I'm trying to use cursor on a
@Get
endpoint using the following code:That eventually calls this repository:
The problem is that the request is refused because Micronaut wants a CursoredPageable that was not specified in the request. This is the output:
I've tried to use only Pageable, which works when sending the request but there is no cursor data after that. I also tried some query brute force trying to guess which query param the cursored is expecting, but without any success. The docs about cursor don't say much about using the CursoredPageable on a controller for http requests. Am I missing something trivial here?
Beta Was this translation helpful? Give feedback.
All reactions