Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Neo4j node api don't know how to find/get node by parameters not only id

Neo4j node api don't know how to find/get node by parameters not only id

Problem

i'm new to neo4j, i'm reading the documentation and a sample, small app based on the node module (neo4j), but i don't see a way to get a node or nodes based on parameter/r.

something like:

var node = db.find({user: "[email protected]", password: "5@^632g23^@#23"});

Can anyone explane it to me, or point me to a good resource explaining it :)

Problem courtesy of: Aleksandrenko

Solution

As far as i know, if you want to find nodes by property, you should search in index. This index you should create by yourself.

In this file i can see functions for working with indexes, unfortunately i've implemented this only in java, so i cant help with exact implementation. Hope, it helps =)

Solution courtesy of: MightySeal

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Neo4j node api don't know how to find/get node by parameters not only id

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×