Is there a way to query the schema of mutations of a graphql server using HTTP? Or a way to query the entire schema of a graphql server? Thanks!
Sure is. The official GraphQL specs outline the introspection specifics. An example of fetching the available mutations might look like so ...
{
__schema {
mutationType {
fields {
name
}
}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With