js-neo4j
Neo4j REST API wrapper for Node.js
Last updated 7 years ago by kievechua .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install js-neo4j 
SYNC missed versions from official npm registry.

Neo4j REST API wrapper for Node.js


Installation

npm install js-neo4j

Usage

{Neo4js} = require('js-neo4j')

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?

Current Tags

  • 0.1.0                                ...           latest (7 years ago)

1 Versions

  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |