SchemaExtension
Constructor:
Signature:
def __init__(self, execution_context: ExecutionContext) -> None: ...
Parameters:
-
execution_context:
- Type
-
ExecutionContext
Methods:
-
on_operation
Called before and after a GraphQL operation (query / mutation) starts.
Signature:
def on_operation(self) -> AsyncIteratorOrIterator[None]:... -
on_validate
Called before and after the validation step.
Signature:
def on_validate(self) -> AsyncIteratorOrIterator[None]:... -
on_parse
Called before and after the parsing step.
Signature:
def on_parse(self) -> AsyncIteratorOrIterator[None]:... -
on_execute
Called before and after the execution step.
Signature:
def on_execute(self) -> AsyncIteratorOrIterator[None]:... -
resolve
Signature:
def resolve(self,_next: Callable,root: Any,info: GraphQLResolveInfo,args: str = (),kwargs: Any = {},) -> AwaitableOrValue[object]:...Parameters:
-
_next:
- Type
-
Callable
-
root:
- Type
-
Any
-
info:
- Type
-
GraphQLResolveInfo
-
args:
- Type
-
str
- Default
-
()
-
kwargs:
- Type
-
Any
- Default
-
{}
-
-
get_results
Signature:
def get_results(self) -> AwaitableOrValue[Dict[str, Any]]:...
Attributes:
-
execution_context:
- Type
-
ExecutionContext