Pagination using next()
method
#462
Unanswered
christiankaindl
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
-
Hello, I want to paginate a query and thought the returned
.next()
method is the easiest way to achieve this, but I can't figure out how to paginate more than once.This is my code:
But
LastEvaluatedKey
logs always the same, so this is an infinite loop. I also can't pass LastEvaluatedKey to thenext()
method as it takes no arguments.next()
also doesn't return anothernext()
method (at least TS says so)What is the correct way to use
next()
in this case? I feel like I'm missing something., thanks! PS: I am using v0.4.3 currentlyBeta Was this translation helpful? Give feedback.
All reactions