amplify-codegen icon indicating copy to clipboard operation
amplify-codegen copied to clipboard

Generate base models with items

Open charlesfayal opened this issue 2 years ago • 1 comments

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.
  • [X] I have read the guide for submitting bug reports.
  • [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)

# Put schemas below this line


Log output

# Put your logs below this line


Additional information

No response

charlesfayal avatar Feb 21 '23 21:02 charlesfayal

Hi @charlesfayal - Thank you for submitting. Marking this as a feature request, and we'll update this ticket as we consider updating the DX for Datastore in the future.

alharris-at avatar Mar 21 '23 16:03 alharris-at