1.2.2 • Published 5 years ago

@savantly/gremlin-js v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

gremlin-js

Javascript client for a gremlin server

Usage

Script tag -

<script type="text/javascript" src="gremlin.umd.js"></script>

npm/yarn -

npm install @savantly/gremlin-js

Example

var options = new gremlinjs.GremlinClientOptions();
var service = new gremlinjs.GremlinService(options);

var query = service.createQuery('g.V().limit(50).values()');

query.onComplete = function(response) {
	console.log(response);
	$('#results').text(JSON.stringify(response.data));
}
		
		

Or custom options -

var service = new gremlinjs.GremlinService({host: 'localhost', port: 8182'});   
		

Full list of client options with defaults-

port = 8182
host = 'localhost'
path = '/gremlin'
language = 'gremlin-groovy'
useSession = true
ssl = false
rejectUnauthorized = true
accept = 'application/json'
processor = ''
channelType = 'websocket'

user: empty;
password: empty;
1.2.2

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago