thingdom/node-neo4j — pull request #25 by jonpacker (2012-05-31 15:01:49+00:00)
Title: Added parameterized queries

You can now use db.query like this:

```javascript
var pquery = ["START n=node({userId})",
"MATCH (n) -[r:follows]-> (m)",
"RETURN r, m.name"].join("\n");

db.query(pquery, { userId: 37 }, function(err, results) {
// ...
});
```

The old way still works, though:
```javascript
var query = ["START n=node(37)",
"MATCH (n) -[r:follows]-> (m)",
"RETURN r, m.name"].join("\n");

db.query(query, function(err, results) {
// ...
});
```