Skip to content

Commit 09f9b6d

Browse files
Remove redundant call to validate (#1393)
* Remove redundant call to validate The call to `validate` in the django view is redundant with the validation call in graphql-core. * Remove whitespace --------- Co-authored-by: Firas K <[email protected]>
1 parent 6f13d28 commit 09f9b6d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

graphene_django/views.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from django.utils.decorators import method_decorator
1010
from django.views.decorators.csrf import ensure_csrf_cookie
1111
from django.views.generic import View
12-
from graphql import OperationType, get_operation_ast, parse, validate
12+
from graphql import OperationType, get_operation_ast, parse
1313
from graphql.error import GraphQLError
1414
from graphql.execution import ExecutionResult
1515

@@ -308,11 +308,6 @@ def execute_graphql_request(
308308
),
309309
)
310310
)
311-
312-
validation_errors = validate(self.schema.graphql_schema, document)
313-
if validation_errors:
314-
return ExecutionResult(data=None, errors=validation_errors)
315-
316311
try:
317312
extra_options = {}
318313
if self.execution_context_class:

0 commit comments

Comments
 (0)