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

Graphql explorer is broken when scalar "bool" exists. #3708

Open
unlinking opened this issue Jan 15, 2020 · 3 comments
Open

Graphql explorer is broken when scalar "bool" exists. #3708

unlinking opened this issue Jan 15, 2020 · 3 comments
Assignees
Labels
c/server Related to server support/needs-more-info Needs more details/info/repro instructions

Comments

@unlinking
Copy link

Explorer is broken when there is a scalar named "bool".

IntrospectionQuery Result

{
  "data": {
    "__schema": {
      "directives": [],
      "mutationType": {
        "name": "Mutation"
      },
      "queryType": {
        "name": "Query"
      },
      "subscriptionType": null,
      "types": [
        {
          "description": "",
          "fields": [
            {
              "args": [
                {
                  "defaultValue": null,
                  "description": "",
                  "name": "test",
                  "type": {
                    "kind": "NON_NULL",
                    "name": null,
                    "ofType": {
                      "kind": "SCALAR",
                      "name": "string",
                      "ofType": null
                    }
                  }
                }
              ],
              "description": "",
              "name": "test",
              "type": {
                "kind": "NON_NULL",
                "name": null,
                "ofType": {
                  "kind": "SCALAR",
                  "name": "bool",
                  "ofType": null
                }
              }
            },
            {
              "args": [],
              "description": "",
              "name": "version",
              "type": {
                "kind": "NON_NULL",
                "name": null,
                "ofType": {
                  "kind": "SCALAR",
                  "name": "string",
                  "ofType": null
                }
              }
            }
          ],
          "kind": "OBJECT",
          "name": "Mutation"
        },
        {
          "description": "",
          "fields": [
            {
              "args": [],
              "description": "",
              "name": "version",
              "type": {
                "kind": "NON_NULL",
                "name": null,
                "ofType": {
                  "kind": "SCALAR",
                  "name": "string",
                  "ofType": null
                }
              }
            }
          ],
          "kind": "OBJECT",
          "name": "Query"
        },
        {
          "description": "",
          "fields": [],
          "kind": "SCALAR",
          "name": "bool"
        },
        {
          "description": "",
          "fields": [],
          "kind": "SCALAR",
          "name": "string"
        }
      ]
    }
  },
  "errors": null
}

Got an error":{"path":"$","error":"type info not found for: 'bool'","code":"unexpected"}

query and mutation still works, but graphql explorer is broken.

@unlinking unlinking changed the title Can not find bool scalar? Graphql explorer is broken when scalar "bool" exists. Jan 15, 2020
@rikinsk rikinsk added the c/console Related to console label Jan 15, 2020
@rikinsk rikinsk added the external-dependency Depends on external tools used label Jan 15, 2020
@0x777
Copy link
Member

0x777 commented Jan 16, 2020

@lulucas Can you help us reproduce this? It would be great if you can share the schema (and metadata).

@unlinking
Copy link
Author

unlinking commented Jan 16, 2020

@lulucas Can you help us reproduce this? It would be great if you can share the schema (and metadata).

scalar bool

type Mutation {
  fine: bool!
}

type Query {
  fine: bool!
}

Simply scalar "bool" existing is enough, as a remote schema.

@0x777

@0x777 0x777 assigned ecthiender and unassigned wawhal Jan 16, 2020
@0x777 0x777 added c/server Related to server and removed c/console Related to console external-dependency Depends on external tools used labels Jan 16, 2020
@tirumaraiselvan tirumaraiselvan added the k/bug Something isn't working label Jan 30, 2020
@tirumaraiselvan
Copy link
Contributor

@lulucas I am not able to reproduce this in v1.3.0-beta.x with a remote schema which has this schema:

scalar bool

type Mutation {
  fine: bool!
}

type Query {
  fine: bool!
}

Can you verify?

@tirumaraiselvan tirumaraiselvan added support/needs-more-info Needs more details/info/repro instructions and removed k/bug Something isn't working labels Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/server Related to server support/needs-more-info Needs more details/info/repro instructions
Projects
None yet
Development

No branches or pull requests

6 participants