简体   繁体   中英

how do I create a query of neo4j using the neography ruby gem?

According to the documentation on querying nodes for the neography ruby gem:

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

But I am unclear what the format and examples of the query is above.

What I want to do is provide a search term that then queries all nodes that have, as one of the properties, userID = xxxx .

I am using a hosted neo4j database on grapheneDB.

For example I want to find the nodes that are relative to a given node:

  • Relationship = friends
  • Date Created = yesterday
  • Limit = 1

Since neography is a wrapper around the Neo4j REST API, you can refer to the documentation there. See: 17.10. Find node by query .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM