neo4j-promised-cypher

Promise wrapper for cypher queries with neo4j

Usage no npm install needed!

<script type="module">
  import neo4jPromisedCypher from 'https://cdn.skypack.dev/neo4j-promised-cypher';
</script>

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