Merge pull request #830 from danpalmer/patch-4

Expose documentation for Union types
This commit is contained in:
Syrus Akbary 2018-09-08 20:07:18 +02:00 committed by GitHub
commit 8d4b9cdc77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,6 +255,7 @@ class TypeMap(GraphQLTypeMap):
return GrapheneUnionType(
graphene_type=type,
name=type._meta.name,
description=type._meta.description,
types=types,
resolve_type=_resolve_type,
)