Resolvers in src/graphql not updating correctly on amplify push
See original GitHub issue** Which Category is your question related to? ** API, GraphQL
** What AWS Services are you utilizing? ** amplify cli, S3, DynamoDB, GraphQL, Cognito
** Provide additional details e.g. code snippets ** I’m currently running version 1.1.7 of the amplify CLI.
I made a change to the graphql.schema and did amplify push but the files in src/graphql are not being updated to reflect that I removed a @model declaration. Is there a way to force rebuild those? Doing amplify api gql-compile does not do it. To be clear, mutations.js, queries.js, subscriptions.js and schema.json are all unchanged. My expectation is that they would be updated automatically whenever a change in graphql.schema is pushed.
I also just added a new model to my schema.grapql file, did amplify push
, all of the services were updated with the new model but the files in src/graphql were not updated to reflect this change.
Is there a way to force this to happen?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13 (3 by maintainers)
Top GitHub Comments
Sorry, I missed that request. Yes, when I deleted
.graphqlconfig.yml
and didamplify codegen add
it did start generating the code again on the next push. Thanks!@poppybank is this
.graphqlconfig.yml
after you didamplify add codegen --apiId
. If thats the case could you delete.graphqlconfig.yml
the file and then runamplify codegen add
and see the codegen happens when you push after that