csv - neo4j - Get all connections where a condition is matched -


i trying nodes particular condition matches. csv looks,

diagnosis          drug_name        total_cost  average_cost arthritis           rimadyl           38.87     38.87 ear infection       rimadyl           15.67     7.835 massinmammarygland  rimadyl           32.49     16.245 

so when give following command,

match (d:diagnosis)-[r:medicine]->(dn:drug_name)-[r1:costs]->(tc:total_cost)-[r2:avg_costs]->(ac:average_cost) d.id = 'arthritis' return distinct dn,r, d,r1,tc,r2,ac 

i getting below graph.

result

however want 1 connection i.e., row 1 csv.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -