From e87ef28a4cc2445528b5d7837fb2bd304ce8899c Mon Sep 17 00:00:00 2001 From: Sean Dougherty Date: Mon, 1 Apr 2019 22:05:57 -0400 Subject: [PATCH] Added description to relationships --- graphene_sqlalchemy/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_sqlalchemy/converter.py b/graphene_sqlalchemy/converter.py index 72089613..6ddeff16 100644 --- a/graphene_sqlalchemy/converter.py +++ b/graphene_sqlalchemy/converter.py @@ -35,7 +35,7 @@ def dynamic_type(): elif direction in (interfaces.ONETOMANY, interfaces.MANYTOMANY): if _type._meta.connection: return createConnectionField(_type._meta.connection) - return Field(List(_type)) + return Field(List(_type), description=getattr(relationship, "doc", None)) return Dynamic(dynamic_type)