我想找到所有尚未与我的酒吧相关联的Foos.我使用neo4j.rb(4.1.2)和Rails(4.2).我现在使用的代码,产生正确的输出,但感觉不理想的是:
@foos = Foo.all.find_all do |foo| foo.bars.rels_to(current_bar).count == 0 end
使用Cypher有更好的方法吗?
ruby-on-rails neo4j cypher neo4j.rb
cypher ×1
neo4j ×1
neo4j.rb ×1
ruby-on-rails ×1