Azure-docs: using new gremlin npm to connect

Created on 2 Jul 2018  Â·  8Comments  Â·  Source: MicrosoftDocs/azure-docs

how do we use the new npm gremlin package to connect to Cosmos DB as per the documentation:
http://tinkerpop.apache.org/docs/current/reference/#gremlin-javascript

const gremlin = require('gremlin');
const Graph = gremlin.structure.Graph;
const DriverRemoteConnection = gremlin.driver.DriverRemoteConnection;

const graph = new Graph();
const g = graph.traversal().withRemote(new DriverRemoteConnection('ws://localhost:8182/gremlin'));


Document details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author cosmos-dsvc doc-enhancement triaged

Most helpful comment

Is Azure CosmosDB planning to support DriverRemoteConnection client anytime?

All 8 comments

Thanks for the feedback! I have assigned the issue to the content author to investigate and update as appropriate.

Hello @lucasmike, please follow the documentation on our getting started page here: https://docs.microsoft.com/en-us/azure/cosmos-db/create-graph-nodejs

The recommended driver for Node.js/Javascript is the gremlin-javascript version 2.7.0 since we don't support DriverRemoteConnection - but we're working on it!

Thanks,
Luis

@lucasmike hope Luis's explanation clarifies, please look forward for the upcoming releases. We will now proceed with closing this issue.

please-close

We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Is Azure CosmosDB planning to support DriverRemoteConnection client anytime?

Any updates on this? 😄

Any update on this?

Any update on this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

varma31 picture varma31  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments