-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
generated models across loaded packages causes error merging type systems #1762
Comments
I am trying to debug this bug, then I found |
Should we release a patch version with all these news? |
@frederikhors I released |
Yeah it is solid. gqlgen is amazing. Really makes me thankful for life. Can we open the discussions tab, @StevenACoffman, please, so we can be able to move there issues that are simple questions? (already requested in #1722) |
What happened?
If models are generated in a package that has already been loaded, and
that package refers to another package that has already been loaded, we
can find ourselves in a position where it appears that a GQL
union
isnot satisfied.
#1020 introduces the
code that fails in this scenario. This was supposed to be addressed in #1491 by @wendorf
but per @ipfans #1491 (comment) it appears to still be occurring.
This repository currently reproduces the issue reliably:
https://github.com/ipfans/gqlgen-error
and is currently getting this error:
The text was updated successfully, but these errors were encountered: