strawberry.types.ExecutionContext

Constructor:

Signature:

def __init__(
self,
query: str | None,
schema: Schema,
context: Any = None,
variables: Dict[str, Any] | None = None,
parse_options: ParseOptions = ExprLambda(),
root_value: Any | None = None,
validation_rules: Tuple[Type[ASTValidationRule], ...] = ExprLambda(),
provided_operation_name: dataclasses.InitVar[str | None] = None,
graphql_document: DocumentNode | None = None,
errors: List[GraphQLError] | None = None,
result: GraphQLExecutionResult | None = None,
) -> None:
...

Parameters:

  1. query:

    Type
    str | None
  2. schema:

    Type
    Schema
  3. context:

    Type
    Any
    Default
    None
  4. variables:

    Type
    Dict[str, Any] | None
    Default
    None
  5. parse_options:

    Type
    ParseOptions
    Default
    ExprLambda()
  6. root_value:

    Type
    Any | None
    Default
    None
  7. validation_rules:

    Type
    Tuple[Type[ASTValidationRule], ...]
    Default
    ExprLambda()
  8. provided_operation_name:

    Type
    dataclasses.InitVar[str | None]
    Default
    None
  9. graphql_document:

    Type
    DocumentNode | None
    Default
    None
  10. errors:

    Type
    List[GraphQLError] | None
    Default
    None
  11. result:

    Type
    GraphQLExecutionResult | None
    Default
    None

Attributes:

  1. query:

    Type
    str | None
  2. schema:

    Type
    Schema
  3. context:

    Type
    Any
  4. variables:

    Type
    Dict[str, Any] | None
  5. parse_options:

    Type
    ParseOptions
  6. root_value:

    Type
    Any | None
  7. validation_rules:

    Type
    Tuple[Type[ASTValidationRule], ...]
  8. graphql_document:

    Type
    DocumentNode | None
  9. errors:

    Type
    List[GraphQLError] | None
  10. result:

    Type
    GraphQLExecutionResult | None
  11. operation_name:

    Type
    str | None
  12. operation_type:

    Type
    OperationType