GraphQLView
Constructor:
Signature:
graphiql: bool | None = None,
graphql_ide: GraphQL_IDE | None = 'graphiql',
allow_queries_via_get: bool = True,
keep_alive_interval: float = 1,
subscription_protocols: Iterable[str] = (GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL),
connection_init_wait_timeout: timedelta = timedelta(ExprKeyword),
Parameters:
-
-
- Type
-
bool | None
- Default
-
None
-
- Type
-
GraphQL_IDE | None
- Default
-
'graphiql'
-
-
-
-
-
- Type
-
Iterable[str]
- Default
-
(GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL)
-
connection_init_wait_timeout:
- Type
-
timedelta
- Default
-
timedelta(ExprKeyword)
Methods:
-
render_graphql_ide
Signature:
def render_graphql_ide(self, request: web.Request) -> web.Response:
-
get_sub_response
Signature:
def get_sub_response(self, request: web.Request) -> web.Response:
-
get_root_value
Signature:
def get_root_value(self, request: web.Request) -> RootValue | None:
-
get_context
Signature:
def get_context(self, request: web.Request, response: web.Response) -> Context:
-
create_response
Signature:
response_data: GraphQLHTTPResponse,
sub_response: web.Response,
Attributes:
-
graphql_transport_ws_handler_class:
-
graphql_ws_handler_class:
-
-
-
-
-
-
-
-
connection_init_wait_timeout:
-