mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
trying to load one relationship
This commit is contained in:
parent
452ceaa591
commit
25d62a2afa
|
@ -125,6 +125,7 @@ class DjangoObjectType(ObjectType):
|
|||
if isinstance(root, cls):
|
||||
return True
|
||||
if not is_valid_neomodel_model(type(root)):
|
||||
print(root, info, cls)
|
||||
raise Exception(('Received incompatible instance "{}".').format(root))
|
||||
return root.__class__ == cls._meta.model
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user