Thanks Michael, exactly what I need.
On Mon, Jan 20, 2014 at 2:40 AM, Michael Hunger < [email protected]> wrote: > You can use any of these drivers which support cypher and neo4j: > http://neo4j.org/develop/javascript > > but with node it is as easy as this: > > var r=require("request") > var cypher = function(query,params,fun) { r.post({uri:" > http://localhost:7474/db/data/transaction/commit",json:{statements:[{statement:query,parameters:params}]}},function(err,res) > { fun(err,res.body)}) } > > var query="MATCH (n) RETURN n LIMIT {limit}" > var params={limit: 10} > var cb=function(err,data) {console.log(JSON.stringify(data))} > > cypher(query,params,cb) > > -> > {"results":[{"columns":["n"],"data":[{"row":[{"name":"Aran"}]}]}],"errors":[]} > > > Am 19.01.2014 um 06:35 schrieb Aran Mulholland <[email protected]>: > > > I am using node.js and am wondering what is the easiest way to achieve > the following: > > > > > > > > Connect to neo4j. > > > > Issue my cypher queries in a parameterised fashion. > > > > Receive the data back from neo4j as JSON. (not changed into another > representation, or deserialised) > > > > > > > > Basically I would like to be as close to the metal of Neo4j as possible. > I don't want the API to handle creation of nodes or relationships, I would > like to do this all myself with custom cypher queries. > > > > Is there a library that would be recommended to meet these requirements? > > > > -- > > You received this message because you are subscribed to the Google > Groups "Neo4j" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > > For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
