neo4j - How to retrieve the nodes with multiple relationships using cypher query -
can 1 please me on this.
i using cypher query nodes having relationship either 'hive' or 'hadoop' , able nodes.
but when try nodes having relationship both 'hive' , 'hadoop' not able nodes.
this query using
start n=node(*) match (n)-[r]-() type(r)="hadoop" , type(r)="hive" return n,count(n);
this query returns 0 rows.
is query wrong or need other way.
thanks in advance.
gouse
this should it:
start n=node(*) match ()-[:hadoop]-(n)-[:hive]-() return n,count(n)
Comments
Post a Comment