GraphQLView
Constructor:
Signature:
Parameters:
-
schema:
- Type
-
BaseSchema
-
graphiql:
- Type
-
bool | None
- Default
-
None
-
graphql_ide:
- Type
-
GraphQL_IDE | None
- Default
-
'graphiql'
-
allow_queries_via_get:
- Type
-
bool
- Default
-
True
Methods:
-
get_root_value
Signature:
Parameters:
-
request:
- Type
-
Request
-
-
render_graphql_ide
Signature:
Parameters:
-
request:
- Type
-
Request
-
-
get_sub_response
Signature:
Parameters:
-
request:
- Type
-
Request
-
-
error_response
A wrapper for error responses.
Returns:
An errors response.
Signature:
Parameters:
-
message:
The error message.
- Type
-
str
-
error_code:
The error code.
- Type
-
str
-
http_status_code:
The HTTP status code.
- Type
-
int
-
headers:
The headers to include in the response.
- Type
-
Dict[str, str | List[str]] | None
- Default
-
None
-
-
get_context
Signature:
Parameters:
-
request:
- Type
-
Request
-
response:
- Type
-
TemporalResponse
-
-
create_response
Signature:
Parameters:
-
response_data:
- Type
-
GraphQLHTTPResponse
-
sub_response:
- Type
-
TemporalResponse
-
-
execute_request
Signature:
Parameters:
-
request:
- Type
-
Request
-
Attributes:
-
allow_queries_via_get:
- Type
-
bool
-
request_adapter_class:
-
schema:
-
graphql_ide: