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
}
}
}
}
-
Does the Github API define any enumerated types?
-
Within the
fields
field, what does theargs
field contain?