Fixed logic bug

This commit is contained in:
Junyu Mu 2020-04-14 13:01:35 +08:00 committed by GitHub
parent 49fcf9f2e6
commit 7680ee0eba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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__):