graphene-django/graphene_django/tests/urls_inherited.py

14 lines
275 B
Python

from django.urls import re_path
from ..views import GraphQLView
from .schema_view import schema
class CustomGraphQLView(GraphQLView):
schema = schema
graphiql = True
pretty = True
urlpatterns = [re_path(r"^graphql/inherited/$", CustomGraphQLView.as_view())]