From 459c8286d7a248bc36b1dfd14b5eb1665307c66d Mon Sep 17 00:00:00 2001 From: Ignacio Orlandini Date: Tue, 22 Sep 2020 00:22:57 -0300 Subject: [PATCH] Code style --- graphene_django/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/views.py b/graphene_django/views.py index d5d886d..b1e9352 100644 --- a/graphene_django/views.py +++ b/graphene_django/views.py @@ -321,7 +321,6 @@ class GraphQLView(View): # executor is not a valid argument in all backends extra_options["executor"] = self.executor - operation_type = document.get_operation_type(operation_name) options = { "root_value": self.get_root_value(request), "variable_values": variables, @@ -331,6 +330,7 @@ class GraphQLView(View): } options.update(extra_options) + operation_type = document.get_operation_type(operation_name) if operation_type == "mutation" and ( graphene_settings.ATOMIC_MUTATIONS is True or connection.settings_dict.get("ATOMIC_MUTATIONS", False) is True