diff --git a/graphene_django/views.py b/graphene_django/views.py index fab733f..b696020 100644 --- a/graphene_django/views.py +++ b/graphene_django/views.py @@ -339,8 +339,9 @@ class GraphQLView(View): ) execute_args = (self.schema.graphql_schema, document) + validation_errors = validate(*execute_args) - if validation_errors := validate(*execute_args): + if validation_errors: return ExecutionResult(data=None, errors=validation_errors) try: