From 35229378cac7b9b9e1b4af2a4ea41a238b1d4c6c Mon Sep 17 00:00:00 2001 From: Lukasz Date: Tue, 5 Dec 2017 17:59:48 +0900 Subject: [PATCH] Allow user to specify mutation description At the moment user is unable to specify mutation description. Mutation class documentation (`__doc__`) is assigned to mutation payload type instead of the mutation itself. We can change this behaviour so mutation class documentation will be automatically reflected in GraphQL schema (type description). --- 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 25794d47..f46c6fcb 100644 --- a/graphene/types/mutation.py +++ b/graphene/types/mutation.py @@ -77,5 +77,5 @@ class Mutation(ObjectType): @classmethod def Field(cls, *args, **kwargs): return Field( - cls._meta.output, args=cls._meta.arguments, resolver=cls._meta.resolver + cls._meta.output, args=cls._meta.arguments, resolver=cls._meta.resolver, description=cls.__doc__ )