-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
incorrect types on fragments #2436
Comments
Is the field tiles a union or interface? Please provide all referenced type definitions. |
sure here's some more context:
|
I also created a reproduction using interfaces instead of unions (see #2437) |
so this is confirmed to be a bug? i wanted to be sure we weren't discovering some issue with our schema through the type generation |
Yes it is a bug caused by some code that I forgot to delete when fixing union/interface types 😅 I fixed it in #2437 I added tests for both unions and interfaces to ensure there will be no regression! |
I'm experiencing this issue as well, thank you to have fixed it 👍 |
Fixed in 1.7.0 |
fwiw this is still broken in 1.8.2 |
@bwiklund Could you please provide a code sandbox example or a failing test? |
sorry, i dont have the bandwidth to recreate this entire environment for a repro. it's the same bug as original reported |
we're getting incorrect types on some generated types, see below. I commented on the final snippet in the generated code where the types are seemingly wrong
The text was updated successfully, but these errors were encountered: