`amplify push` not to override specific resolvers
See original GitHub issue** Which Category is your question related to? ** API
** What AWS Services are you utilizing? ** AppSync
** Provide additional details e.g. code snippets **
For example, I added manually a global secondary index to a dynamoDB table and set a resolver to scan against it. Now, whenever I update my schema locally and issue amplify push the resolver is overwritten and loses all manually set instructions.
Is there any way to preserve the manually changed resolvers?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
API (GraphQL) - Overwrite & customize resolvers - Amplify Docs
GraphQL resolvers connect the fields in a type's schema to a data source. Resolvers are the mechanism by which requests are fulfilled.
Read more >AWS Amplify - Overriding auto-generated resolver logic
I had not updated my Amplify CLI for a while and I ran into an issue with the new(ish) max-depth attribute you can...
Read more >AWS- Amplify - Appsync : What is the correct workflow ...
Generate and overwrite GraphQL statements? No ... If you want to use the Amplify Library, make note of the different instructions starting ...
Read more >Amplify push overriding my schema.graphql ...
This required field breaks my app logic which does not pass an AWSDateTime, instead relying on the resolver to generate that. If I...
Read more >AWS Amplify: Create Custom Resolvers Programmatically
After all the change We should push/sync our project. You can push your changes to your code repository if you are using the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes, you can do this using the
‘amplify push —no-gql-overridecommand.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
*-helpchannels for those types of questions.