aws-amplify / aws-amplify/amplify-codegen

Generate base models with items

Open
#544 1 comment 0 reactions 0 assignees View on GitHub
feature-request p4
Dominant language
TypeScript
Stars
59
Forks
64
PR merge metrics
No merged PRs in 30d

Description

### Before opening, please confirm:

- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-codegen/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-codegen/blob/main/CONTRIBUTING.md#bugs).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

### How did you install the Amplify CLI?

npm

### If applicable, what version of Node.js are you using?

18.9.0

### Amplify CLI Version

10.7.3

### What operating system are you using?

Mac

### Amplify Codegen Command

codegen models

### Describe the bug

I'd like to be able to generate typescript models such that they are as they would be when using the API from aws-amplify.
Basically, just creates the base typescript models without lazy models, inits, etc.

Right now it doesn't even create arrays with the items member and nextToken.

### Expected behavior

Create typescript models with the structure that the GraphQL API returns.

### Reproduction steps

amplify codegen models for any schema

### GraphQL schema(s)

```graphql
# Put schemas below this line

```

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

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.