i have two records ('orders' and 'menulist') that are joined with 'orderitem' by orderID nad menuID [1]: https://i.stack.imgur.com/5kF8R.png [2]: https://i.stack.imgur.com/sabUE.png [3]: https://i.stack.imgur.com/0sqk1.png
i was trying to promote each orderitem record into a relationship in the graph what I did is:
LOAD CSV WITH HEADERS FROM "file:///orders.csv" AS row
CREATE (n:Orders)
SET n = row
LOAD CSV WITH HEADERS FROM "file:///menulist.csv" AS row
CREATE (n:Menu)
SET n = row
CREATE INDEX FOR (m:Menu) ON (m.MenuID)
CREATE INDEX FOR (o:Orders) ON (o.OrderID)
LOAD CSV WITH HEADERS FROM "file:///orderitem.csv" AS row
MATCH (m:Menu), (o:Orders)
WHERE m.MenuID = row.MenuID AND o.orderID = row.orderID
CREATE (o)-[oi:CONTAINS]->(m)
SET oi = row,
oi.Quantity = toInteger(row.Quantity)
but I got (no changes, no records), seems there is an error here, can anyone help to solve?