jaydenwindle / django-graphql-playground

Apollo GraphQL Playground as a Django view
MIT License
13 stars 3 forks source link

django-graphql-playground

Apollo GraphQL Playground as a Django view

Screenshot

Install

$ pip install django-graphql-playground

Configure

# 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.