Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我想在 neo 4j 中进行“最喜欢”的文章查询,其中“喜欢”是用户和文章之间的关系,最好的方法是:
或者
我想我在文档中读到查询不能按总关系计数排序。
So, you can do:
start user=node(*) match user-[rel:liked]->article return count(rel) as likeCount, article order by likeCount desc;
http://console.neo4j.org/r/5do0qr