arangojs icon indicating copy to clipboard operation
arangojs copied to clipboard

db.listGraphs returns the graph list in the err property

Open DamianCasale opened this issue 11 years ago • 1 comments

From the documentation :

var db = require('arangojs')(); db.listGraphs(function (err, graphs) { if (err) return console.error(err); // graphs is an array of graph descriptions });

However this actually returns the list of graphs as "err" rather than "graphs" property.

DamianCasale avatar Sep 16 '15 17:09 DamianCasale

Thanks for catching that. This is also true for db.graphs.

pluma avatar Sep 18 '15 16:09 pluma