Schema
The Schema page provides an overview of your GraphQL schema, allowing you to filter and explore type and field definitions. Here, you can also view the raw Schema Definition Language (SDL) of your GraphQL schema. The page lists various kinds of definitions, including objects, scalars, inputs, etc.
Query
The Query type is a crucial part of the GraphQL schema, serving as the entry point for every GraphQL query. While the Query type is a special type, it functions similarly to any other GraphQL object type, and its fields operate in the same way.

GraphQL queries can go beyond simple types and traverse related objects and their fields. This ability enables clients to fetch comprehensive sets of related data in a single request, eliminating the need for multiple roundtrips as required in traditional REST architectures.
Query Fields
Mutation
The Mutation type in GraphQL is specifically designed to modify server-side data. Similar to queries, mutation fields can return an object type, allowing clients to request nested fields. Mutations can consist of multiple fields. However, a crucial distinction exists: while query fields execute in parallel, mutation fields run in series. This ensures that if multiple mutations are sent in a single request, the first mutation completes before the second begins, preventing race conditions.

Mutation Fields
Objects
The most basic components of a GraphQL schema are object types, representing distinct kinds of objects that can be fetched from the service, along with their defined fields.


Last updated