cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Unable to obtain the relationship based on the query

sucheta
Graph Buddy

Hi,

I am unable to figure out the relationship based on this query -

MATCH (n)-[r]->(m) WHERE n.name="connparams" return r

Whereas, when i run this query -

MATCH (n) RETURN n, id(n)

i get output -

Please guide. I want to figure out the relationship of the node.

5 REPLIES 5

Benoit
Graph Buddy

Do you have a result with this query : MATCH (n)-[r]->(m) WHERE id(n)=7433 RETURN n,r,m ?

Sorry ...no ... there is no output .

What to do ? I want to obtain the relationship

And stupid question : are you sure that this node has some outgoing relationships ?

If you run this query 'MATCH (n)--(m) WHERE id(n)=7433 RETURN n,m` in the browser, what do you have ?

But then .. i have network here with all the nodes and relationships acquired using the Neovis -

sucheta
Graph Buddy

Thanks Benoit.

I figured out the query -

MATCH (n) - [r] -() WHERE n.name = "connectcab" return type(r)

or

MATCH (n) - [r] -() WHERE n.name = "connectcab" return distinct type(r)