Technology•May 23, 2018
New Node.js Fluent API for DSE Graph

npm install dse-graph
const dse = require('dse-driver'); const dseGraph = require('dse-graph');
const client = new dse.Client({ contactPoints: ['host1', 'host2'], profiles: [ dseGraph.createExecutionProfile('default', { graphOptions: { name: 'my_graph' } }) ] });
const g = dseGraph.traversal(client);
const g = dseGraph.traversal(client, { executionProfile: 'other-profile' });
const traversal = g.V().has('name', 'matt').out('knows').values('name');
traversal.toList().then(friendNames => console.log(friendNames));
const query = dseGraph.queryFromBatch(batch);