Skip to content

__type(name:"") queries don't return data if the named type is unknown #539

Closed
@simhnna

Description

@simhnna

Given the example schema:

type Query {
  hello: String!
}

When you run a query for an unknown type

{
  __type(name:"Bar") {
    kind
    name
    description
  }
}

I would expect to get

{
  "data": {
    "__type": null
  }
}

Instead I get

{
  "data": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions