-
Notifications
You must be signed in to change notification settings - Fork 62
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
Unable to generate operations.graphql #838
Comments
Changing your
|
Thank you - this solved my problem. This would be nice to have as a CLI config, or specified somewhere in docs. Maybe I missed it. Thank you. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
@dpilch Is there a plan to support this with |
That is not prioritized at this time. |
Before opening, please confirm:
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
20.9.0
Amplify CLI Version
12.11.1
What operating system are you using?
Mac
Amplify Codegen Command
other
codegen <subcommand>
(please mention in the issue)Describe the bug
I would like to efficiently generate RTK Query hooks for my Amplify application using this tool.
I have not been able to figure out how to generate the code that belongs in the
operations.graphql
input. In other word, the files that are generated withamplify codegen statements
but without the Typescript wrapped around.Maybe I am missing a simple command, but if not it would be really helpful to have this as a codegen statement...
Expected behavior
The output I expect is the
useGetAccountQuery
, but properly typed with the queries definition found ingraphql/queries.ts
, but without the typescript wrapping it.I would like to have an option to access these statements in their graphql syntax within my codebase via this codegen package.
Reproduction steps
graphql
file with all of the operations the schema offers.The text was updated successfully, but these errors were encountered: