Open xalien10 opened 1 month ago
Is your question that you want to create a relationship between an Address
node and the Administrator
node, even though you didn't declare that those two labels could be connected by a relationship in your neomodel classes ?
If so, then no, you cannot create relationships in this way using the neomodel Python proxies. The only way for you to do so would be using Cypher (with db.cypher_query
). But then, you would also have to retrieve those relationships using Cypher instead of neomodel proxies, since that also relies on the class definition.
Note : You don't have to pass that __label__
property to your node classes if the label is identical to the class name, neomodel will map that automatically for you.
I'm trying to connect nodes in a SemiStructuredNode where my node definitions are below:
Now I'm trying to create Administrator like below-
But it seems like as no relationship is defined in the
Administrator
node, so it can not create with the above approach.How can I create Administrator object and connect nodes dynamically as for our use cases we don't not which nodes are going to be connected into the
Administrator
node.I've just started to use
neomodel
recently. Is there any alternative way that I can achieve similar things?Thanks in advance!