-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create or delete multiple values at a time in a batch? #2873
Comments
Hi @janhesters You can Add a custom resolver that targets a DynamoDB table from Those docs mention writing more specific queries, but there is no reason it couldn't be adapted to do You can construct your GraphQL mutations to accept a collection of ids and then implement the associated resolvers to perform batch operations. I hope this helps. Also, if you want, you can creeate a feature request in the aws-amplify/amplify-cli repo |
@manueliglesias Thank you for the answer. I will do that 👍 |
@jamesiri did you succeed with this approach? If yes, could you share your solution? |
@LucasAndrad and anyone else who stumbles on this, @janhesters wrote up their findings in this blog https://medium.com/@jan.hesters/creating-graphql-batch-operations-for-aws-amplify-with-appsync-and-cognito-ecee6938e8ee |
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 |
** Which Category is your question related to? **
API
** What AWS Services are you utilizing? **
GraphQL, Dynamo DB, Codegen
** Provide additional details e.g. code snippets **
I have the following schema:
This generated the following Graphql mutations for creating and deleting:
How can I delete or create in bulk? Let's say I have an array of ID's. What is the most efficient way to delete all users with those ID's?
The text was updated successfully, but these errors were encountered: