Open hissssst opened 1 year ago
Oh, I've found the root cause. It happens when you add import_types
into the module where you import types from, and not in the schema, where it is supposed to be used in
@benwilson512 why did you close it as completed? Reopen please
@benwilson512 ping
Hi @hissssst sorry when you indicated that you found the root cause I took that to mean that you had solved the issue. Are you asking Absinthe to detect such cases proactively and raise an error?
Yes, exactly. This is even in the issue
Expected behavior Compilation successful or raises an error
Environment
Expected behavior
Compilation successful or raises an error
Actual behavior
Compilation stuck with
Compiling lib/app_web/api/schema.ex (it's taking more than 10s)
until consumes all available memory and gets killed by OOMRelevant Schema/Middleware Code
I would like to share the details if you can point to what can I share. I have a huge and private gql project where this is happening, and I just don't know what should I share. The diff which breaks the code has introduced a few unions, objects, enums and one
import_types
and relay connection without anything special