I'm getting the following exception when trying to create/update a edge between two nodes:
org.neo4j.driver.v1.exceptions.ClientException: Invalid input 'H': expected 'i/I' (line 1, column 105 (offset: 104))
MATCH (o:`City`) WHERE ID(o) = {oid} MATCH (i:`City`) WHERE ID(i) = {iid} MERGE (o)-[r:`Stretch`]->(i) WHERE ID(r) = {id} ON MATCH SET r = {rp}
My code simply finds the edge (which I labeled as 'Stretch') and tries to update its properties.
stretch.property(Stretch.ROAD_CODE, stretchDTO.getRoadCode());
stretch.property(Stretch.INITIAL_KM, stretchDTO.getInitialKm());
stretch.property(Stretch.FINAL_KM, stretchDTO.getFinalKm());
if (stretchDTO.getDistance() != null)
stretch.property(Stretch.DISTANCE, stretchDTO.getDistance());
if (stretchDTO.getTollKm() != null)
stretch.property(Stretch.TOLL_KM, stretchDTO.getTollKm());
if (stretchDTO.getCostAxis() != null)
stretch.property(Stretch.COST_AXIS, stretchDTO.getCostAxis());
if (stretchDTO.getCostMotorcycle() != null)
stretch.property(Stretch.COST_MOTORCYCLE, stretchDTO.getCostMotorcycle());
return stretch;
Cypher Wiki says I cannot use MERGE and WHERE together.
Do you have any solution for this kind of problem?
I'm getting the following exception when trying to create/update a edge between two nodes:
My code simply finds the edge (which I labeled as 'Stretch') and tries to update its properties.
Cypher Wiki says I cannot use MERGE and WHERE together.
Do you have any solution for this kind of problem?
Thanks.