Introduction to Schema Introspection
Learn about GraphQL 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 1400+ tech skills courses.