co-cypher
... is a wrapper around node-cypher which provides thunks in order to use with co.
Installation
Remember you need node v0.11 or newer and use the --harmony
flag in order to get support for generators.
npm install co-cypher
Usage
var co = cypher = ; ;
cypher.createClient
and client.query
use the exact same arguments as they do in node-cypher.
In addition a client has queryAsnc
which is a copy of the original query
. Use it if you want to mix callbacks and generators (it's also used internally).
Tests
You'll need a neo4j server running on localhost:7474 to pass all tests
npm test
# - or -
node --harmony test/test.js
License
MIT