aws-amplify / aws-amplify/amplify-codegen

amplify codegen should auto compile schema before generating statements

Open
#579 3 comments 1 reaction 0 assignees View on GitHub
feature-request p3
Dominant language
TypeScript
Stars
59
Forks
64
PR merge metrics
No merged PRs in 30d

Description

### 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 the `src/graphql` folder

running `amplify api gql-compile` before `amplify codegen` regenerates the statement files

### Expected behavior

graphql statements should be updated with changes made to the local schema

### Reproduction steps

1. `yarn global add @aws-amplify/cli@11.0.5`
2. `amplify init`
3. `amplify add api`-> GraphQL
4. Edit local schema and add a new model
5. `amplify codegen add`
6. `amplify codegen`

### Project Identifier

_No response_

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

### Before submitting, please confirm:

- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.