Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Query GraphQL Mutation Schema

Tags:

graphql

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!

like image 262
Marcus Ericsson Avatar asked Mar 04 '26 17:03

Marcus Ericsson


1 Answers

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
      }
    }
  }
}
like image 123
Ryan Avatar answered Mar 06 '26 06:03

Ryan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!