gremlin-js-driver
v0.0.1
Published
Drivers for JavaScript Gremlin Language library
Downloads
2
Maintainers
Readme
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 --save
or yarn
yarn add gremlin-js-driver
Use 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.