graphene-django/graphene_django/tests/urls_inherited.py

14 lines
266 B
Python
Raw Normal View History

from django.urls import path
2017-07-11 13:18:31 +03:00
from ..views import GraphQLView
from .schema_view import schema
2018-07-20 02:51:33 +03:00
2017-07-11 13:18:31 +03:00
class CustomGraphQLView(GraphQLView):
schema = schema
graphiql = True
pretty = True
urlpatterns = [path("graphql/inherited/", CustomGraphQLView.as_view())]