-
Notifications
You must be signed in to change notification settings - Fork 57
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
Request variables with circular dependency #81
Comments
@joooika interesting, if you could provide a small repo with the reproduction I could probably fix it quickly. |
@ruiaraujo @boopathi thanks for reply. Noticed the PR. Still need example for this? |
@joooika no. The example in the issue description is good. You can take a look at the test cases in that PR - It covers the recursive types, as well as mutually recursive types (as in your example). In case I missed something, please feel free to comment. |
@boopathi any update? |
@boopathi Hi, I have encountered the same issue. Is there any update? Thanks a lot. |
I met the same problem. By removing the Recursive Input Type, I gave up the beauty of the schema and took performance, but I want to design the schema beautifully again. |
I just hit it too today.. Too bad JIT sounded like a huge improvment |
Any plan on merging the referenced PR ? |
Hello all, We are having the same issue using graphql-mesh, which rely on graphql-jit : ardatan/graphql-mesh#3493 We provided a small reproduction in the issue I linked. I think to avoid this issue we could either set a maximum call stack count or record the types encountered? This is blocking anyone trying to use graphql-mesh in front of Hasura, as Hasura generates recursive types by default in their filters inputs. |
Hi,
I encountered this issue when making a create request for entity A that has a circular reference with B. Schema definition is implemented with type-graphql roughly like this.
Now if I try to send a query
with variables
the query execution gets stuck in a recursive loop during
compileQuery
call or more specifically in generateInput function. Apparently when going through the request variables inif (isInputType(varType))
block generating another call to itself and this goes on until out of memory error.I'm using apollo-server with custom executor like described in the examples. Similar issues do not occur with default apollo-server config or by running the query with with graphql-js execute.
The text was updated successfully, but these errors were encountered: