Unable to obtain the relationship based on the query

cypher
knowledge-base

(Sucheta) #1

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.


(Benoit Simard) #2

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


(Sucheta) #3

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

What to do ? I want to obtain the relationship


(Benoit Simard) #4

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 ?


(Sucheta) #5

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


(Sucheta) #7

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)