Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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));
};
me.listEdges = function(config, callback){
var field = Object.keys(config)[0];
var all = gremlin.E().has(field, config[field]).toJSON();
callback(null, all);
};