cayley.js
Cayley client for nodejs.
Install
$ npm install cayley --save
Usage
You just need to copy the code of Gremlin!
var cayley = ; var client = ; var g = graph = clientgraph;// or g = graph = clientg; g; g; g; // And you can create Morphism in you javascript codevar filmToActor = g; g;
When you want to query shape, g.type('shape')
will return a new graph which return shape for query:
// to query shapeg = gtype'shape';g;
Also simple write/delete APIs are implemented:
var client = ;client; client;
cayley(host, [options])
options will be passed to request, so you can add settings like proxy, headers.
TODOs
- mql api
Licence
MIT