0.0.1 • Published 6 years ago
gremlin-js-driver v0.0.1
Drivers for JavaScript Gremlin Language library
This module contains additional drivers for official gremlin library
Implemented drivers:
| Name | Description |
|---|---|
| WsJsDriverRemoteConnection | Websocket connection for Web applications |
How to use it
Install package using npm
npm install gremlin-js-driver --saveor yarn
yarn add gremlin-js-driverUse it in your application:
const gremlin = require('gremlin');
const gremlin_drivers = require('gremlin-js-driver');
const traversal = gremlin.process.AnonymousTraversalSource.traversal;
const WsJsDriverRemoteConnection = gremlin_drivers.WsJsDriverRemoteConnection;
const g = traversal().withRemote(new WsJsDriverRemoteConnection('ws://localhost:8182/gremlin'));Please see the documentation for gremlin library for more information.
0.0.1
6 years ago