Skip to content

Instantly share code, notes, and snippets.

@YourSouLi5Mine
Created November 12, 2019 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YourSouLi5Mine/932b46025b367da8964887588b587ba7 to your computer and use it in GitHub Desktop.
Save YourSouLi5Mine/932b46025b367da8964887588b587ba7 to your computer and use it in GitHub Desktop.
Good way to introspect a new GraphQL API
query roots {
__schema {
queryType {
...typeFields
}
mutationType {
...typeFields
}
subscriptionType {
...typeFields
}
}
}
fragments typeFields on __Type {
name
fields {
name
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment