2012-11-27 39 views

回答

2

所有我的朋友谁阅读“书作者”的书:

start me=node(1) 
match me-[:KNOWS]-friend-[:READ]-book-[:WRITTEN_BY]-author 
where author.name='Book Author' 
return friend.name 

和所有我的朋友谁阅读“书作者”的书籍,有一个等级高于4

start me=node(1) 
match me-[:KNOWS]-friend-[:READ]-book-[:WRITTEN_BY]-author 
where author.name='Book Author' and book.rank? > 4 
return friend.name