【发布时间】:2017-05-06 16:45:55
【问题描述】:
根据documentation on querying nodes 获取neography ruby gem:
Neography::Node.find(index, query) # advanced query of the node index with the given query
但是我不清楚上面query的格式和例子是什么。
我想要做的是提供一个搜索词,然后查询具有userID = xxxx 作为属性之一的所有节点。
我在 grapheneDB 上使用托管的 neo4j 数据库。
例如我想找到与给定节点相关的节点:
- 关系 = 朋友
- 创建日期 = 昨天
- 限制 = 1
【问题讨论】:
-
仅供参考(您可能已经意识到了),但 Neography 已基本被放弃([检查提交历史][1])。我肯定会推荐查看 [neo4jrb][2] 或更多最小的 neo4j-core gems(甚至neography 自述文件也建议使用 neo4jrb)。我从 Neography 开始,然后迅速做出改变,我对 neo4jrb 感到真的满意。 Neo4j-core 将是与 Neography 的直接比较。 [1]:github.com/maxdemarzi/neography/graphs/contributors [2]:github.com/neo4jrb/neo4j
标签: ruby neo4j neography graphenedb