TechnologyMay 23, 2018

New Node.js Fluent API for DSE Graph

Jorge Bay Gondra
Jorge Bay Gondra
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);
Discover more
GremlinDSE GraphDrivers
Share

One-stop Data API for Production GenAI

Astra DB gives JavaScript developers a complete data API and out-of-the-box integrations that make it easier to build production RAG apps with high relevancy and low latency.