如何使用neography ruby​​ gem创建neo4j的查询?

时间:2017-05-06 16:45:56

标签: ruby neo4j neography graphenedb

根据新的红宝石宝石的documentation on querying nodes

Neography::Node.find(index, query)   # advanced query of the node index with the given query

但我不清楚query的格式和示例是什么。

我想要做的是提供一个搜索字词,然后查询所有具有userID = xxxx属性之一的节点。

我在grapheneDB上使用托管的neo4j数据库。

例如,我想找到与给定节点相关的节点:

  • 关系=朋友
  • 创建日期=昨天
  • 限制= 1

1 个答案:

答案 0 :(得分:0)

由于neography是Neo4j REST API的包装器,您可以参考那里的文档。请参阅:17.10. Find node by query