October 2017
Beginner to intermediate
316 pages
8h
English
The first strategy that we will use to calculate the price of the product in our hierarchy will do a full sweep of the tree:
The query for this approach is similar to the following:
match (n1:PRODUCT {id:1})<-[r1]-(:COST_GROUP)<-[r2]-(:COST_TYPE)<-[r3]-(:COST_SUBTYPE)<-[r4]-(:COST)<-[r5]-(n6:COST_COMPONENT) return sum(r1.quantity*r2.quantity*r3.quantity*r4.quantity*r5.quantity*n6.price) ...Read now
Unlock full access