Fix UnionType resolver

Fixes #98
This commit is contained in:
Markus Padourek 2016-02-01 15:57:28 +00:00
parent 0531623ab3
commit e7b5358604

View File

@ -35,6 +35,6 @@ class UnionType(six.with_metaclass(UnionTypeMeta, FieldsClassType)):
return GraphQLUnionType(
cls._meta.type_name,
types=list(map(schema.T, cls._meta.types)),
resolve_type=cls._resolve_type,
resolve_type=lambda instance, info: cls._resolve_type(schema, instance, info),
description=cls._meta.description,
)