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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -