neo4j-promised-cypher
v0.1.3
Published
Promise wrapper for cypher queries with neo4j
Downloads
3
Readme
Simple promise based API around cypher
Usage
var db = require('neo4j-promised-cypher')('http://localhost:7474');
db.query('MATCH (p:Person) return p').then(function(results) {
console.log(results);
});
db.begin().then(function() {
tx.query([
'CREATE (r:Person{name: {ryan}})',
'CREATE (b:Person{name: {bob}})',
'CREATE (r)-[l:KNOWS]->(b) return r,l,b'
], { ryan: 'Ryan', bob: 'Bob' }).then(function() {
tx.commit();
});
});