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

Introspecting __typename field panics the service #4038

Closed
MohamedSabthar opened this issue Feb 2, 2023 · 0 comments · Fixed by ballerina-platform/module-ballerina-graphql#1201
Assignees
Labels
module/graphql Issues related to Ballerina GraphQL module Points/0.25 Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/PCM Protocol connector packages related issues Type/Bug
Milestone

Comments

@MohamedSabthar
Copy link
Member

Description:
Introspection with the following GraphQL queries causes the service to crash with a {ballerina/lang.map}KeyNotFound error:

{
  __type(name: "Profile") {
    __typename
  }
}
{
  __schema {
    types {
      name
      __typename
    }
  }
}

Steps to reproduce:
Run the queries against the example at https://ballerina.io/learn/by-example/graphql-returning-record-values/.

Expected behaviour: introspection queries should return "__Type" as the value for __typename

Affected Versions:

OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

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/0.25 Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/PCM Protocol connector packages related issues Type/Bug
Projects
Archived in project
2 participants