How to use the gremlin.E function in gremlin

To help you get started, we’ve selected a few gremlin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NextCenturyCorporation / EVEREST / services / database / titan_graph.js View on Github external
me.list = function(config, callback) {
		var verts = gremlin.V().toJSON();
		var edges = gremlin.E().toJSON();
		var error = verts.error || edges.error;
		callback(error, verts.concat(edges));
	};
github NextCenturyCorporation / EVEREST / services / database / titan-graph.js View on Github external
me.listEdges = function(config, callback){
		var field = Object.keys(config)[0];
		var all = gremlin.E().has(field, config[field]).toJSON();
		callback(null, all);
	};