How to use CursoredPageable on a Controller? #3144
Unanswered
rafaelrenanpacheco
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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