This package builds on the DataStax Enterprise Node.js driver, adding functionality for interacting with DSE graph features and Apache TinkerPop.
DSE Graph Extensions for DataStax Enterprise Node.js Driver can be used solely with DataStax Enterprise. Please consult the license.
npm install dse-graph
You can use the project mailing list or create a ticket on the Jira issue tracker.
Create a dse.Client
instance and use it to obtain traversal sources:
const dse = require('dse-driver');
const dseGraph = require('dse-graph');
const client = new dse.Client({ contactPoints: ['h1', 'h2'] });
const g = dseGraph.traversalSource(client);
// print john's friends names
g.V().has('name','john').out('friends').values('name').toList((err, names) => {
names.forEach(console.log);
});
You should reuse the Client
instance across your application.
Copyright 2016-2017 DataStax
http://www.datastax.com/terms/datastax-dse-driver-license-terms
Apache TinkerPop, TinkerPop, Apache are registered trademarks of The Apache Software Foundation