A GraphQL schema is a strongly-typed contract, written in the GraphQL Schema Definition Language (SDL), that explicitly defines the complete set of data types, queries, mutations, and subscriptions available in a GraphQL API. It serves as the single source of truth for both the API server and its clients, enabling type-safe interactions and powerful developer tooling like introspection and auto-completion. The schema's root types (Query, Mutation, Subscription) act as entry points for all operations.




