Skip to content
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

Generate base models with items #544

Open
4 tasks done
charlesfayal opened this issue Feb 21, 2023 · 1 comment
Open
4 tasks done

Generate base models with items #544

charlesfayal opened this issue Feb 21, 2023 · 1 comment
Labels
feature-request New feature or request p4

Comments

@charlesfayal
Copy link

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • 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

@alharris-at
Copy link
Contributor

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 alharris-at added feature-request New feature or request p4 labels Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request p4
Projects
None yet
Development

No branches or pull requests

2 participants