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 to assign username as the node label for users node as per given graph?

Because as per query I didn't assign genre as the node label here


I want to out username as the label for "users" node and show that a particular user is interested in(Relationship) the book twilight where genre is romance .
Genre adventure was assigned randomly in the above dataset. Please ignore that

2 REPLIES 2

12kunal34
Graph Fellow

your question is not clear but as per my understanding , you want to work on below query

MATCH (n:USERS{name:'---your choice', genre:'romance'})-[:intreseted_in]->(m:BOOK{name:'twilight'})
return

if i am wrrong then elaborate your query please

Sorry I forgot to add my query. I am not manually adding nodes/names/properties. I am trying to add relationship to already existing nodes : Users(ID,FavGenre) and Books(ID,Genre,Title etc etc). Yes similar to what you said I want to show users(name) -Interestedin{genre}-Twilight . Can you please respond to my doubt now ?



Book.csv
2X_8_827abd5a81aed2ab23cfc73f064872790c2292f2.png
Users.csv