-
Notifications
You must be signed in to change notification settings - Fork 524
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
schema compilation goes into infinite recurion #1296
Comments
I suspect this happens in the I don't have time to work on it but wanted to point to what I think is happening. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The compilation of the following schema module runs into an infinite recursion:
It's easy to reproduce: create a new project with
mix new
, and addabsinthe ~> 1.7.6
as a dependency. Runmix deps.get
andmix deps.compile
. Add the above module to the project, and try to compile the app withmix compile
. It will not terminate.Actual behavior
The compilation takes a very long time and seems like it eats up all the available memory. The OS kills the compilation process after some time.
It I use the interface name instead of the type name at least on one side of the relation, the schema compiles.
Interestingly it works when I turn the eatenBy fields type to Animal in the CatFood and DogFood types:
It also works when the eatenBy stays
CatFood
andDogFood
, but theeats
fields type is changed toFood
inCat
and `Dog:Environment
The text was updated successfully, but these errors were encountered: