Bi-Directional relations

60 views
Skip to first unread message

fadis

unread,
Nov 15, 2015, 9:17:51 AM11/15/15
to Popotojs alpha
Hello, Is there a way to display bi-directional relations instead of the current uni-directional concept.

MATCH (partner1)-[:PARTNER]-(partner2)

instead of 

MATCH (partner1)-[:PARTNER]->(partner2)

or

MATCH (partner1)<-[:PARTNER]-(partner2)


I just want to see the other partner and this is regardless if I am starting with Patner 1 or 2 Node.

Please advise.

Thanks

Popotojs alpha

unread,
Nov 18, 2015, 7:13:29 AM11/18/15
to Popotojs alpha
Hi,
Yes you can use the property popoto.query.USE_RELATION_DIRECTION in your configuration and set it to "false" to ignore relation direction.

I plan to add more options in future release to allow customization depending on the relations.
Let me know if this doesn't fit your needs and if you need more specific features.
Reply all
Reply to author
Forward
0 new messages