Apollo GraphQL Playground as a Django view
$ pip install django-graphql-playground
# settings.py
INSTALLED_APPS = [
...
'graphql_playground',
]
# urls.py
urlpatterns = [
...
path('playground/', GraphQLPlaygroundView.as_view(endpoint="<your_graphql_endpoint>")),
]
You can pass in any valid GraphQL Playground property as an argument to GraphQLPlaygroundView.as_view
. A full list of supported properties can be found here
See example/
for more details.