DataStore predicates without Predicates.ALL specified usage question
See original GitHub issueNote: If your question is regarding the AWS Amplify Console service, please log it in the official AWS Amplify Console forum
Which Category is your question related to? DataStore
Amplify CLI Version
4.29.6
What AWS Services are you utilizing? Amplify, DataStore
Provide additional details e.g. code snippets I’m wondering if its possible to use pagination when not using predicates.all on a set of data. Below works fine…
const messages = await DataStore.query(Message, Predicates.ALL, { page: 0, limit: 100 });
But what about if I want to limit the following filtered results…
const messages = await DataStore.query(Message, (m) => m.msgConvID('eq', conversationId) )
Is it possible to paginate these filtered results without using a slice on front end, thank you!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
transferring this to JS repo. cc @sammartinez
This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels or Discussions for those types of questions.