django-neomodel icon indicating copy to clipboard operation
django-neomodel copied to clipboard

'DjangoNode' has no attribute '__label__'

Open wvhulle opened this issue 3 years ago • 0 comments

I have built a model where node is a node and property is a property. However, when i try to traverse all connected nodes with

connected_nodes= node.property.all()

This crashes, because the target class of the Traversal is DjangoNode and has no label attribute. This returns

venv/lib/python3.9/site-packages/neomodel/match.py", line 320, in build_traversal
    rhs_label = ':' + traversal.target_class.__label__
AttributeError: type object 'DjangoNode' has no attribute '__label__'

How do I view all the connected nodes without specifying the class? Thanks.

wvhulle avatar Sep 08 '21 13:09 wvhulle