0.1.3 • Published 9 years ago

neo4j-promised-cypher v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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();
  });
});