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.

How can I display a value of a relation

Hey folks,

I'm new in Neo4j and so I'm still playing arround.

The problem: I have a node named person and a node named book. The relationship between the two nodes is called favorite. This relationship has an order how much a person likes the book.

Now I want to return the name of the person, the name of the book and the integer-value how much the person likes the book, but I don't get it.

Thanks a lot,
Paul

1 ACCEPTED SOLUTION

In general:

MATCH (p:Person)-[fav:FAVORITE]->(b:Book)
RETURN p.name, fav.rating, b.title

Did you check out the Cypher guide

And also the online training under

View solution in original post

2 REPLIES 2

Perhaps you can show us the data in your graph, and also add the queries you've tried so far, that can help us figure out where the misunderstanding is.

In general:

MATCH (p:Person)-[fav:FAVORITE]->(b:Book)
RETURN p.name, fav.rating, b.title

Did you check out the Cypher guide

And also the online training under