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
When I try to satisfy the generate types in VSCode calling a mutation I need to provide the variables wrapped in a variables : {} (as below). to silence any errors.
When I try to satisfy the generate types in VSCode calling a mutation I need to provide the variables wrapped in a
variables : {}
(as below). to silence any errors.However, this fails at runtime with an error missing the input variable.
By changing:
await createBook({ variables: { input: [input] } })
to
await createBook({ input: [input] } )
it works at runtime but emits the error in the IDE.
I'm not sure if this a version mismatch, a bug or there is something else I am doing wrong here.
Any help would be appreciated.
Versions
with this generate types:
"@graphql-codegen/cli": "^5.0.5",
Additional context
My IDE is Cursor (forked from VSCode)
The text was updated successfully, but these errors were encountered: