graphene-django/graphene_django/tests/urls_validation.py
2023-11-24 04:30:33 +08:00

17 lines
342 B
Python

from django.urls import path
from graphene.validation import DisableIntrospection
from ..views import GraphQLView
from .schema_view import schema
class View(GraphQLView):
schema = schema
urlpatterns = [
path("graphql/", View.as_view()),
path("graphql/validation/", View.as_view(validation_rules=(DisableIntrospection,))),
]