Instantly share code, notes, and snippets.

Embed
What would you like to do?
Introspection query for GraphQL
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
description
args {
...InputValue
}
onOperation
onFragment
onField
}
}
}
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
}
}
}
}
@mfix22

This comment has been minimized.

Show comment
Hide comment
@mfix22

mfix22 Mar 8, 2017

This is awesome. Thanks @craigbeck!

mfix22 commented Mar 8, 2017

This is awesome. Thanks @craigbeck!

@mr-beerkiss

This comment has been minimized.

Show comment
Hide comment
@mr-beerkiss

mr-beerkiss Feb 1, 2018

Very useful, thanks for posting!

mr-beerkiss commented Feb 1, 2018

Very useful, thanks for posting!

@tvvignesh

This comment has been minimized.

Show comment
Hide comment
@tvvignesh

tvvignesh Mar 25, 2018

Very helpful. Thanks.

tvvignesh commented Mar 25, 2018

Very helpful. Thanks.

@falconmick

This comment has been minimized.

Show comment
Hide comment
@falconmick

falconmick commented Apr 20, 2018

cheers

@konsumer

This comment has been minimized.

Show comment
Hide comment
@konsumer

konsumer Jun 20, 2018

Thanks! I used it to make this

konsumer commented Jun 20, 2018

Thanks! I used it to make this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment