execute

Signature:

def execute(
schema: GraphQLSchema,
allowed_operation_types: Iterable[OperationType],
extensions: Sequence[Type[SchemaExtension] | SchemaExtension],
execution_context: ExecutionContext,
execution_context_class: Type[GraphQLExecutionContext] | None = None,
process_errors: Callable[[List[GraphQLError], ExecutionContext | None], None],
) -> ExecutionResult:
...

Parameters:

  1. schema:

    Type
    GraphQLSchema
  2. allowed_operation_types:

    Type
    Iterable[OperationType]
  3. extensions:

    Type
    Sequence[Type[SchemaExtension] | SchemaExtension]
  4. execution_context:

    Type
    ExecutionContext
  5. execution_context_class:

    Type
    Type[GraphQLExecutionContext] | None
    Default
    None
  6. process_errors:

    Type
    Callable[[List[GraphQLError], ExecutionContext | None], None]