nextToken Handling
See original GitHub issue** Which Category is your question related to? **
AppSync SDK
** What AWS Services are you utilizing? **
Amplify, AppSync
** Provide additional details e.g. code snippets **
We’re using the AppSync SDK as documented here: https://aws-amplify.github.io/docs/js/api#aws-appsync-sdk
We’re using queries started like this:
appSyncClient
.query({
query: gql(getBlog)
})
The problem is that we’re not getting all data. This is not specific to list queries (#2728), it also happens when getting a single entity that has a list of another entity attached (e.g., get a blog with all its posts).
In our application, it is not an issue if ALL posts (in the example) are received at once. We do not want to use pagination and would like to get everything at once.
How can we skip pagination and use AppSync to get everything?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (3 by maintainers)
Top GitHub Comments
Also note that you don’t want to overwrite that file as it’ll be overwritten by the next time you amplify push/etc. Instead you want to copy it to the /amplify/backend/api/your GraphQL API name/resolvers/ directory (note the lack of the ‘build’ directory). That’s where you put custom resolvers.
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.