Introduction to Schema Introspection

yIt’s important to check which queries or operations a GraphQL server supports. To accommodate this functionality, GraphQL has an introspection system.

When we’ve designed the type system ourselves, we know which types are available. However, if we haven’t designed it, we could ask GraphQL by querying the __schema. The field is always open on the root type of a query. Let’s ask GraphQL what types are available:

Get hands-on with 1200+ tech skills courses.