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.
is_node
1 parent 88ccaec commit ef18eb5Copy full SHA for ef18eb5
graphene/relay/node.py
@@ -13,8 +13,8 @@ def is_node(objecttype):
13
Check if the given objecttype has Node as an interface
14
'''
15
assert issubclass(objecttype, ObjectType), (
16
- 'Only ObjectTypes can have a Node interface.'
17
- )
+ 'Only ObjectTypes can have a Node interface. Received %s'
+ ) % objecttype
18
for i in objecttype._meta.interfaces:
19
if issubclass(i, Node):
20
return True
0 commit comments