question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`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:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kaustavghosh06commented, Jan 3, 2019

Yes, you can do this using the ‘amplify push —no-gql-override command.

0reactions
github-actions[bot]commented, May 27, 2021

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 for those types of questions.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found