mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 20:54:16 +03:00
commit
8c3f8b170b
|
@ -1,3 +1,5 @@
|
|||
from functools import partial
|
||||
|
||||
import six
|
||||
from graphql.core.type import GraphQLUnionType
|
||||
|
||||
|
@ -35,6 +37,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=partial(cls._resolve_type, schema),
|
||||
description=cls._meta.description,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user