graphene-django/graphene_django/tests/urls_inherited.py

14 lines
275 B
Python
Raw Normal View History

from django.urls import re_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 = [re_path(r"^graphql/inherited/$", CustomGraphQLView.as_view())]