To prevent duplicate virtual relationships from being created; is there an option for something similar to apoc.merge.vRelationship
I am creating multiple relationships and RETURNing it. The YEILD of the COLLECTion is at the lowest grain. One relationship is at the lowest grain, the other relationship is aggregated and at a higher level.I am getting duplicate of the aggregated realationship
As an example:
Year >>>>> Month >>>>> Day >>>> Channel {Num of Interactions}
So I have data like
2018, Jun, 18, ABC (200)
2018, Jun, 18, DEF (400)
2018, Jun, 18, DEF (100)
2018, Jun, 19, ABC (20)
2018, Jun, 19, DEF (40)
When I UNWIND this collection;
Row 1: 2018, Jun, 18, ABC (200)
apoc.create.vRelationship for 18 to ABC
apoc.merge.vRelationship for Jun to 18
apoc.merge.vRelationship for 2018 to Jun
And Then
Row 2: 2018, Jun, 18, DEF (400)
apoc.create.vRelationship for 18 to DEF
apoc.merge.vRelationship for Jun to 18
apoc.merge.vRelationship for 2018 to Jun
I know there are workarounds in getting to this with the apoc.create; but really hoping if there is a way to apoc.merge (currently or in the future)
Regards
Sreekanth