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

--statement-typename-introspection=false doesnt work #14051

Closed
2 tasks done
mnai01 opened this issue Dec 29, 2024 · 2 comments
Closed
2 tasks done

--statement-typename-introspection=false doesnt work #14051

mnai01 opened this issue Dec 29, 2024 · 2 comments
Labels
duplicate If marked with duplicate, issue will be closed & original will be added for traceability pending-triage Issue is pending triage

Comments

@mnai01
Copy link

mnai01 commented Dec 29, 2024

How did you install the Amplify CLI?

npm

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

v20.11.1

Amplify CLI Version

1.4.5

What operating system are you using?

Windows 10

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No

Describe the bug

This command npx ampx generate graphql-client-code --out ./src/store/api/generated --format graphql-codegen --statement-typename-introspection=false still generates the __typename value in my API.ts generated file

Expected behavior

No __typename field should be present in the generated file

Reproduction steps

  1. Add this to your package.json script or run it in your cli npx ampx generate graphql-client-code --out ./src/store/api/generated --format graphql-codegen --statement-typename-introspection=false

Project Identifier

No response

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.
@mnai01 mnai01 added the pending-triage Issue is pending triage label Dec 29, 2024
@ykethan ykethan added the duplicate If marked with duplicate, issue will be closed & original will be added for traceability label Dec 30, 2024
@ykethan
Copy link
Member

ykethan commented Dec 30, 2024

Closing this issue as this appears to be a duplicate of aws-amplify/amplify-codegen#920

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate If marked with duplicate, issue will be closed & original will be added for traceability pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

2 participants