From 7680ee0eba00d20ddb608a5909e454b85aa62852 Mon Sep 17 00:00:00 2001 From: Junyu Mu Date: Tue, 14 Apr 2020 13:01:35 +0800 Subject: [PATCH] Fixed logic bug --- graphene/types/mutation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/types/mutation.py b/graphene/types/mutation.py index 6e041bbf..cc1b406e 100644 --- a/graphene/types/mutation.py +++ b/graphene/types/mutation.py @@ -86,7 +86,7 @@ class Mutation(ObjectType): ), f'All interfaces of {cls.__name__} must be a subclass of Interface. Received "{interface}".' fields.update(interface._meta.fields) - if not output: + if output: # If output is defined, we don't need to get the fields fields = {} for base in reversed(cls.__mro__):