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.

Get all nodes and the relations of all nodes

Hi, I am new in neo4j, so I have a basic question. I use the movie example database. What I need is a query with following result: get all nodes and for every node (source) all connected nodes (with properties) and the relation between the source node and the connected node. (with properties).

I need this informations (with all properties) for coloring the nodes and the relations.

So, the original neo4j-browser shows the names of nodes and relations, regardless of the node type. I I I can see the query:

MATCH (n) RETURN n LIMIT 25

But how are the relations selected?

How I can accomplished them?
Thanks!

2 REPLIES 2

intouch_vivek
Graph Steward

Please try to get all node which has edges along with their properties
Match (n)-[r]->(m)
Return n,r,m

Thanks! This was really useful for me in Bloom working on an all manual data entry Knowledge Graph.