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

Inter-Depending Fragments can Cause StackOverflow #2640

Closed
ThisaruGuruge opened this issue Jan 31, 2022 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#595
Assignees
Labels
module/graphql Issues related to Ballerina GraphQL module Points/3 Team/PCM Protocol connector packages related issues Type/Bug

Comments

@ThisaruGuruge
Copy link
Member

Description:
When a document contains inter-depending fragments, it will result in a stack overflow error in the GraphQL server.

Check the following document:

query {
    __schema {
        queryType {
            ...FieldFragment
        } 
    }
}

fragment TypeFragment on __Type {
  name
  kind
  fields {
    ...FieldFragment
  }
}

fragment FieldFragment on __Field {
  type {
    ...TypeFragment
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/graphql Issues related to Ballerina GraphQL module Points/3 Team/PCM Protocol connector packages related issues Type/Bug
Projects
None yet
2 participants