Open jmisilo opened 4 months ago
A fix for this would be greatly appreciated. Without this I'm still writing out types manually.
@sethtjf I suggest you to use zod for validation
Ah! I spent quite some time looking for a solution to this in the docs and elsewhere on the internet. I guess overriding the type is the only way for now.
Bug report
Describe the bug
Types generated for TypeScript, based on the query content are not correct:
Query
Provided type
Type in reality
Additional context
In theory difference is small, but it makes big types issues, since casting is required to make it work correctly.