graphql/graphql.py
def graphql_sync(
    schema: GraphQLSchema,
    source: Union[str, Source],
    root_value: Any = None,
    context_value: Any = None,
    variable_values: Dict[str, Any] = None,
    operation_name: str = None,
    field_resolver: Callable = None,
    middleware: Middleware = None,
    execution_context_class: Type[ExecutionContext] = ExecutionContext,
) -> ExecutionResult:
    """Execute a GraphQL operation synchronously.

    The graphql_sync function also fulfills GraphQL operations by parsing, validating,
    and executing a GraphQL document along side a GraphQL schema. However, it guarantees
    to complete synchronously (or throw an error) assuming that all field resolvers
    are also synchronous.
    """
    result = graphql_impl(
        schema,
        source,
        root_value,
        context_value,
        variable_values,
        operation_name,
        field_resolver,
        middleware,
        execution_context_class,
    )

    # Assert that the execution was synchronous.
    if isawaitable(result):
        ensure_future(cast(Awaitable[ExecutionResult], result)).cancel()
        raise RuntimeError("GraphQL execution failed to complete synchronously.")

    return cast(ExecutionResult, result)
Execute a GraphQL operation synchronously.

    The graphql_sync function also fulfills GraphQL operations by parsing, validating,
    and executing a GraphQL document along side a GraphQL schema. However, it guarantees
    to complete synchronously (or throw an error) assuming that all field resolvers
    are also synchronous.
    
Execute a GraphQL operation synchronously.
The graphql_sync function also fulfills GraphQL operations by parsing, validating,
and executing a GraphQL document along side a GraphQL schema. However, it guarantees
to complete synchronously (or throw an error) assuming that all field resolvers
are also synchronous.
Execute a GraphQL operation synchronously . The graphql_sync function also fulfills GraphQL operations by parsing validating and executing a GraphQL document along side a GraphQL schema . However it guarantees to complete synchronously ( or throw an error ) assuming that all field resolvers are also synchronous .
def graphql_sync(
    schema: GraphQLSchema,
    source: Union[str, Source],
    root_value: Any = None,
    context_value: Any = None,
    variable_values: Dict[str, Any] = None,
    operation_name: str = None,
    field_resolver: Callable = None,
    middleware: Middleware = None,
    execution_context_class: Type[ExecutionContext] = ExecutionContext,
) -> ExecutionResult:
    result = graphql_impl(
        schema,
        source,
        root_value,
        context_value,
        variable_values,
        operation_name,
        field_resolver,
        middleware,
        execution_context_class,
    )
    if isawaitable(result):
        ensure_future(cast(Awaitable[ExecutionResult], result)).cancel()
        raise RuntimeError("GraphQL execution failed to complete synchronously.")
    return cast(ExecutionResult, result)
def graphql_sync ( schema : GraphQLSchema , source : Union [ str , Source ] , root_value : Any = None , context_value : Any = None , variable_values : Dict [ str , Any ] = None , operation_name : str = None , field_resolver : Callable = None , middleware : Middleware = None , execution_context_class : Type [ ExecutionContext ] = ExecutionContext , ) -> ExecutionResult : result = graphql_impl ( schema , source , root_value , context_value , variable_values , operation_name , field_resolver , middleware , execution_context_class , ) if isawaitable ( result ) : ensure_future ( cast ( Awaitable [ ExecutionResult ] , result ) ) . cancel ( ) raise RuntimeError ( "GraphQL execution failed to complete synchronously." ) return cast ( ExecutionResult , result )
Execute a GraphQL operation synchronously.
Execute a GraphQL operation synchronously .
"""Execute a GraphQL operation synchronously.

    The graphql_sync function also fulfills GraphQL operations by parsing, validating,
    and executing a GraphQL document along side a GraphQL schema. However, it guarantees
    to complete synchronously (or throw an error) assuming that all field resolvers
    are also synchronous.
    """ # Assert that the execution was synchronous.
schema
GraphQLSchema
source
Union[str, Source]
root_value
Any
context_value
Any
variable_values
Dict[str, Any]
operation_name
str
field_resolver
Callable
middleware
Middleware
execution_context_class
Type[ExecutionContext]