Greetings,
I was able to write a complex query using five to six cypher statements. I want to parameterize this query and call it from HTTP API. What is the best way to do this ?
match (c:Company {name: "ABC"})-[:company_to_order]-(f:Order)<-[:market_to_order]-(m:Market {name: "CRPTPA"})
match (f)<-[:orderbasis_to_order]-(fb:OrderBasis {name: f.class}) with f,c, fb
match (ft:OrderTariff {name: f.tariff}) with f, ft,c,fb
match (ft)-[:ordertariff_to_orderruletariff]-(frt:OrderRuleTariff) with f, ft, frt,c,fb
match (frt)-[:orderruletariff_to_record0]-(r0:Record0)<-[:company_to_record0]-(c) with f,ft,frt,c,fb,r0
match (c)-[:company_to_record1]-(r1:Record1)<-[:orderbasis_to_record1]-(fb) with f,ft,frt,c,fb,r0,r1
match (frt)-[:orderruletariff_to_record1]-(r1) with f,ft,frt,c,fb,r0,r1
return f,ft,frt,fb,r0,r1
I want to be able to pass company name and market name each time I invoke this set of statements that return a result set.
My end goal is to invoke this from HTTP REST end point.
please can you let me know the best way to achieve this.
Thanks