我还没有真正的代码,但我的代码与我需要的相反
current_user.friends(:f).match_to(event)
这将返回与我的事件节点有关系的朋友。我需要的是那些没有这种关系的人。
我必须像在文档中那样喂它吗
blog.query_as(:blog).match("blog<-[:COMMENTS_ON]-(:Comment)<-[:AUTHORED]-(author:Person)").where("author.age > 30").pluck(:author)
但没有关系?
所以像
current_user.friends.query_as(:f).match("event<-[invite:invited]-(f:User)).where(invite: nil)
还是有其他方法?