GraphQLController
Methods:
-
execute_request
Signature:
request: Request[Any, Any, Any],
) -> Response[GraphQLResource | str]:
Parameters:
-
- Type
-
Request[Any, Any, Any]
-
-
-
render_graphql_ide
Signature:
def render_graphql_ide(self, request: Request[Any, Any, Any]) -> Response[str]:
Parameters:
-
- Type
-
Request[Any, Any, Any]
-
create_response
Signature:
response_data: GraphQLHTTPResponse,
sub_response: Response[bytes],
-
handle_http_get
Signature:
request: Request[Any, Any, Any],
) -> Response[GraphQLResource | str]:
Parameters:
-
- Type
-
Request[Any, Any, Any]
-
-
-
-
handle_http_post
Signature:
request: Request[Any, Any, Any],
) -> Response[GraphQLResource | str]:
Parameters:
-
- Type
-
Request[Any, Any, Any]
-
-
-
-
get_context
Signature:
def get_context(self, request: Request[Any, Any, Any], response: Response) -> Context:
Parameters:
-
- Type
-
Request[Any, Any, Any]
-
-
get_root_value
Signature:
def get_root_value(self, request: Request[Any, Any, Any]) -> RootValue | None:
Parameters:
-
- Type
-
Request[Any, Any, Any]
-
get_sub_response
Signature:
def get_sub_response(self, request: Request[Any, Any, Any]) -> Response:
Parameters:
-
- Type
-
Request[Any, Any, Any]
-
websocket_endpoint
Signature:
def websocket_endpoint(self, socket: WebSocket, context_ws: Any, root_value: Any) -> None:
-
pick_preferred_protocol
Signature:
def pick_preferred_protocol(self, socket: WebSocket) -> str | None:
Attributes:
-
-
-
-
graphql_ws_handler_class:
- Type
-
Type[GraphQLWSHandler]
-
graphql_transport_ws_handler_class:
- Type
-
Type[GraphQLTransportWSHandler]
-
-
-
-
-
connection_init_wait_timeout:
-
-
-