Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 774 Bytes

12-introspecting-the-schema.md

File metadata and controls

28 lines (18 loc) · 774 Bytes

Introspecting the Schema

How does GraphiQL type check your query before you've even sent it?

  • In fact, any client needs to check the query before sending to the server.

To do this, a client can send an introspection query. This asks "which types and fields do you have"? This is also how GraphiQL populates the right-hand side Docs pane.

You can query against the GraphQL schema yourself. Paste this query into the left pane:

{
    __schema {
        queryType {
            name
            fields {
                name
                description
            }
        }
    }
}
  1. Does the Github API define any enumerated types?

  2. Within the fields field, what does the args field contain?