I have a database where I have products and suppliers. Many suppliers sell the same product, so I want to calculate the ROI for each supplier based on there selling price and attach the output on the SOLD_BY relationship property named ROI.
The goal is for all products to use one calculation node and return there output to the ROI property field.
This already sound like a function has to be used, i'm new to Neo4j. So it would be very helpful if I could do it in one node and have all the different ROI use that node to give a value.
How do I do this?