Closed mlesin closed 1 month ago
For further reference, this issue has been also reported as issue #9421 in repo dotansimha/graphql-code-generator
The relevant change in urql is reported here: https://github.com/urql-graphql/urql/pull/2607
I have the same problem and I hope this problem will be solved as soon as possible.
This was fixed, but it stopped working again!
Which packages are impacted by your issue?
@graphql-codegen/typescript-vue-urql
Describe the bug
Recent Urql major version update now have more strict type requirements for passing variable into useQuery generic. Now it forces variables property to be required in passing object if any variable is not optional, and that breaks code generated by typescript-vue-urql:
Your Example Website or App
https://the-guild.dev/graphql/codegen
Steps to Reproduce the Bug or Issue
type Query { user(id: String!): User }
type User { id: String! username: String! email: String! }
Expected behavior
That is pretty easy to fix, however:
Screenshots or Videos
No response
Platform
graphql
version: [e.g. 16.3.0]@graphql-codegen/typescript-vue-urq
version: 2.3.6@urql/core
version 4.0.4Codegen Config File
No response
Additional context
No response