mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-07 13:54:21 +03:00
Code style
This commit is contained in:
parent
eeb714caad
commit
459c8286d7
|
@ -321,7 +321,6 @@ class GraphQLView(View):
|
||||||
# executor is not a valid argument in all backends
|
# executor is not a valid argument in all backends
|
||||||
extra_options["executor"] = self.executor
|
extra_options["executor"] = self.executor
|
||||||
|
|
||||||
operation_type = document.get_operation_type(operation_name)
|
|
||||||
options = {
|
options = {
|
||||||
"root_value": self.get_root_value(request),
|
"root_value": self.get_root_value(request),
|
||||||
"variable_values": variables,
|
"variable_values": variables,
|
||||||
|
@ -331,6 +330,7 @@ class GraphQLView(View):
|
||||||
}
|
}
|
||||||
options.update(extra_options)
|
options.update(extra_options)
|
||||||
|
|
||||||
|
operation_type = document.get_operation_type(operation_name)
|
||||||
if operation_type == "mutation" and (
|
if operation_type == "mutation" and (
|
||||||
graphene_settings.ATOMIC_MUTATIONS is True
|
graphene_settings.ATOMIC_MUTATIONS is True
|
||||||
or connection.settings_dict.get("ATOMIC_MUTATIONS", False) is True
|
or connection.settings_dict.get("ATOMIC_MUTATIONS", False) is True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user