-
Notifications
You must be signed in to change notification settings - Fork 62
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
amplify codegen should auto compile schema before generating statements #579
Comments
Closing as this was confirmed to be expected behavior. |
Converting this to a feature request. Would be a nice quality of life change to not have to run two commands to regenerate statements |
The docs doesn't mention having to run Is it supposed to be in the docs? Also, I'm observing this behavior in my project:
Is this by design? I thought Also, wouldn't this be a reasonable workflow? edit schema -> compile schema -> codegen -> git commit & push -> amplify push Instead of the current one: edit schema -> amplify push -> codegen -> git commit & push |
How did you install the Amplify CLI?
yarn
If applicable, what version of Node.js are you using?
v18.14.2
Amplify CLI Version
11.0.5
What operating system are you using?
Mac (Apple Silicon)
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
Running
amplify codegen
on the latest version of the Amplify CLI is not resulting in new graphql statements in thesrc/graphql
folderrunning
amplify api gql-compile
beforeamplify codegen
regenerates the statement filesExpected behavior
graphql statements should be updated with changes made to the local schema
Reproduction steps
yarn global add @aws-amplify/cli@11.0.5
amplify init
amplify add api
-> GraphQLamplify codegen add
amplify codegen
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: