You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect codegen to generate the NonNullReturnTypeMutation type in API.service.ts. In the context of the bug description above it would be UpdateFooMutation
Before opening, please confirm:
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v18.16.1
Amplify CLI Version
12.10.1
What operating system are you using?
Mac
Amplify Codegen Command
codegen
Describe the bug
Having a non null return type for a mutation doesn't generate the appropriate return type in API.service.ts. If I have a mutation like
The generated code in API.service.ts looks like
But theres no
UpdateFooMutation
createdExpected behavior
I would expect codegen to generate the NonNullReturnTypeMutation type in API.service.ts. In the context of the bug description above it would be
UpdateFooMutation
Reproduction steps
GraphQL schema(s)
Log output
No response
Additional information
I get the following
GeneratedMutation
inmutations.ts
This is the generated code in
mutation.graphql
This is the generated code in
graphql-schema.ts
The text was updated successfully, but these errors were encountered: