class GraphQL::Query

A combination of query string and Schema instance which can be reduced to a result.

The API-specific portions of guides/queries/executing_queries.md were migrated to Schema#execute, Schema#multiplex, and this initializer. Those APIs accept query strings or parsed documents, variables, context, root values, operation names, validation controls, and depth/complexity limits. The guide remains a standalone execution tutorial.

API-specific portions

GraphQL::Schema.execute runs one query and GraphQL::Schema.multiplex runs several queries with shared multiplex-level context. Both delegate to this class, so the following options have the same meaning in each API:

The executing queries guide keeps examples for variables, context, scoped context, and root values. This class and the Schema#execute/Schema#multiplex method comments are the source of truth for option names, defaults, and execution behavior.