We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0531623 + d971fbb commit 8c3f8b1Copy full SHA for 8c3f8b1
graphene/core/classtypes/uniontype.py
@@ -1,3 +1,5 @@
1
+from functools import partial
2
+
3
import six
4
from graphql.core.type import GraphQLUnionType
5
@@ -35,6 +37,6 @@ def internal_type(cls, schema):
35
37
return GraphQLUnionType(
36
38
cls._meta.type_name,
39
types=list(map(schema.T, cls._meta.types)),
- resolve_type=cls._resolve_type,
40
+ resolve_type=partial(cls._resolve_type, schema),
41
description=cls._meta.description,
42
)
0 commit comments