/django-graphql-playground

Apollo GraphQL Playground as a Django view

Primary LanguageHTMLMIT LicenseMIT

django-graphql-playground

Apollo GraphQL Playground as a Django view

Screenshot

Install

$ pip install django-graphql-playground

Configure

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