GraphQLProtocolTypeRouter
HTTP and Websocket GraphQL type router.
Convenience class to set up GraphQL on both HTTP and Websocket, optionally with a Django application for all other HTTP routes.
This will route all requests to /graphql on either HTTP or websockets to us, and everything else to the Django application.
Constructor:
Signature:
Parameters:
-
schema:
- Type
-
BaseSchema
-
django_application:
- Type
-
str | None
- Default
-
None
-
url_pattern:
- Type
-
str
- Default
-
'^graphql'