From e7b5358604d7411de25ae5bf206bbda73adc79bb Mon Sep 17 00:00:00 2001 From: Markus Padourek Date: Mon, 1 Feb 2016 15:57:28 +0000 Subject: [PATCH] Fix UnionType resolver Fixes #98 --- graphene/core/classtypes/uniontype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/core/classtypes/uniontype.py b/graphene/core/classtypes/uniontype.py index 62003005..37a8d14a 100644 --- a/graphene/core/classtypes/uniontype.py +++ b/graphene/core/classtypes/uniontype.py @@ -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, )