Skip to content
masterclass Buddy

GraphQL · Function

createSchema

A GraphQL schema defines what data an API exposes and how that data is shaped. Its type system lets clients send valid queries with predictable results.

Last updated

Syntax

type Query { fieldName: ReturnType }

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Queries
  • Mutations
  • Subscriptions
  • Validation
  • Execution
  • Introspection

Source: Schemas and Types | GraphQL. Checked 2026-11-03.