mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
relay Connection.node does not have to subclass Node/ObjectType
This commit is contained in:
parent
f955280d1a
commit
87634240c9
|
@ -57,9 +57,6 @@ class ConnectionMeta(ObjectTypeMeta):
|
||||||
options.local_fields = OrderedDict()
|
options.local_fields = OrderedDict()
|
||||||
|
|
||||||
assert options.node, 'You have to provide a node in {}.Meta'.format(cls.__name__)
|
assert options.node, 'You have to provide a node in {}.Meta'.format(cls.__name__)
|
||||||
assert issubclass(options.node, (Node, ObjectType)), (
|
|
||||||
'Received incompatible node "{}" for Connection {}.'
|
|
||||||
).format(options.node, name)
|
|
||||||
|
|
||||||
base_name = re.sub('Connection$', '', options.name) or options.node._meta.name
|
base_name = re.sub('Connection$', '', options.name) or options.node._meta.name
|
||||||
if not options.name:
|
if not options.name:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user