Skip to content

Instantly share code, notes, and snippets.

@francishero
Created December 12, 2018 15:29
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 francishero/f7c449a6f43fe1fbfafe8f801049c6a2 to your computer and use it in GitHub Desktop.
Save francishero/f7c449a6f43fe1fbfafe8f801049c6a2 to your computer and use it in GitHub Desktop.
fragment typeField on __Type {
name
fields {
name
}
}
query roots {
__schema {
queryType{
...typeField
}
mutationType {
...typeField
}
subscriptionType{
...typeField
}
}
}
@francishero
Copy link
Author

use this snippet in GraphiQl or the playground to find out what Queries, Mutations and Subscriptions you can run on a given graphql API

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