REST API wrapper for Node.js
CoffeeScript
Switch branches/tags
Nothing to show
Latest commit 5b6de6f Apr 6, 2015 @kievechua Update README.md
Permalink
Failed to load latest commit information.
doc
src
test
.gitignore
.groc.json
Gruntfile.coffee
History.md
LICENSE
README.md
package.json

README.md

Deprecated

Neo4j REST API wrapper for Node.js


Installation

npm install neo4js

Usage

{Neo4js} = require('neo4js')

neo = new Neo4js()

neo
    .createNode()
    .then((data) ->
        console.log data
    )
    .fail((data) ->
        console.log 'error', arguments
    )

neo
    .queryBuilder()
    .start('*')
    .return('*')
    .execute()
    .then((data) ->
        console.log data
    )
    .fail((data) ->
        console.log 'error', arguments
    )

Check out api document

Or test generator document

All Neo4js CRUB interface come with little shorthand

neo.createNode() = neo.cNode()
neo.readNode() = neo.rNode()
neo.updateNodeProperty() = neo.uNodeProperty()
neo.deleteNode() = neo.dNode()
// And etc

Development

  1. Start Neo4j server
  2. Run npm test

Required

Neo4j, 2.0

TODO

  1. Cypher sanitization
  • Cover remaining api
  • More documentation
  • Integrate with Travis CI
  • Browserify?
  • Cache?