Neo4j Transactions
Neo4j Transactions is a javascript driver for executing transactions on a Neo4j database, calling the transactional Cypher HTTP endpoint.
Works with a promises based or a callback based code style. The choice is up to you.
Install
$ npm install neo4j-transactions --save
Quick example
var Neo4j = // Create a Neo4j client instancevar client = // If you want you can check database avaliability// before moving onclientdatabaseAvaliable // Create a transaction objectvar tx = client var newPost = title: 'neo4j-transactions is a tiny library' slug: 'neo4j-transactions-is-a-tiny-library' // Execute a transaction which immediately commitstx
Api docs
You can read the documentation in the repository or on gitbook.com, where you can also download the PDF, ePub and MOBI versions.