arangojs
arangojs copied to clipboard
db.listGraphs returns the graph list in the err property
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.
Thanks for catching that. This is also true for db.graphs.