Skip to content
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

Recursive types are not supported #412

Open
berenddeboer opened this issue Aug 25, 2023 · 2 comments
Open

Recursive types are not supported #412

berenddeboer opened this issue Aug 25, 2023 · 2 comments

Comments

@berenddeboer
Copy link

Describe the bug
I have a recursive input (not my doing, I didn't invent this schema), and that breaks the generation:

input PremiseProduct_FilterInput {
  and: [PremiseProduct_FilterInput]
  not: PremiseProduct_FilterInput
  or: [PremiseProduct_FilterInput]
  id: IDOperator
}

Error: depth limit exceeded: 51

@MscWd
Copy link

MscWd commented Dec 2, 2024

Any suggestions how to handle this?

@schwer
Copy link
Owner

schwer commented Dec 14, 2024

The tool is well suited for expansive but uninteresting schemas. I've seen other issues raised because the tool does not work with some graphql syntax. Your best bet is to work manually with the schema. Unless you have unlimited time to burn on fixing the code to deal effectively with recursion. I have no idea how, but I'm sure it's possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants