0.0.1 • Published 4 years ago

gremlin-js-driver v0.0.1

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
4 years ago

Drivers for JavaScript Gremlin Language library

This module contains additional drivers for official gremlin library

Implemented drivers:

NameDescription
WsJsDriverRemoteConnectionWebsocket 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.