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

Introspection query has deprecated fields. #5

Open
silentsoundz opened this issue Jun 4, 2019 · 1 comment
Open

Introspection query has deprecated fields. #5

silentsoundz opened this issue Jun 4, 2019 · 1 comment

Comments

@silentsoundz
Copy link

silentsoundz commented Jun 4, 2019

Greetings Nathan,
your Introspection Query is using the first example which is causing errors with the visualizer, please consider the second example as a possible fix.

        name
        description
        args {
            ...InputValue
        }
        onOperation
        onFragment
        onField
    }  


   directives {
          name
          description
          locations
          args {
            ...InputValue
          }
        }

@cramhead
Copy link

Adjusting the query to the following works

query IntrospectionQuery {
  __schema {
    queryType {
      name
    }
    mutationType {
      name
    }
    subscriptionType {
      name
    }
    types {
      ...FullType
    }
    directives {
      name
      description
      args {
        ...InputValue
      }
    }
  }
}

fragment FullType on __Type {
  kind
  name
  description
  fields(includeDeprecated: true) {
    name
    description
    args {
      ...InputValue
    }
    type {
      ...TypeRef
    }
    isDeprecated
    deprecationReason
  }
  inputFields {
    ...InputValue
  }
  interfaces {
    ...TypeRef
  }
  enumValues(includeDeprecated: true) {
    name
    description
    isDeprecated
    deprecationReason
  }
  possibleTypes {
    ...TypeRef
  }
}

fragment InputValue on __InputValue {
  name
  description
  type {
    ...TypeRef
  }
  defaultValue
}

fragment TypeRef on __Type {
  kind
  name
  ofType {
    kind
    name
    ofType {
      kind
      name
      ofType {
        kind
        name
      }
    }
  }
}

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

2 participants