You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm observing an odd behavior with the following script (using arangojs 7.7.0):
const { Database, aql } = require("arangojs");
const db = new Database("http://db:8529");
db.useBasicAuth("myusername", "mypassword");
db.useDatabase("MyDatabase");
const col = db.collection("MyCollection");
db.query(aql`FOR doc in ${col} RETURN doc`).then(async (cursor) => { console.log("Done"); }); // it works up to here
db.listUsers().then((usersData) => {
console.log("Users data", usersData); // this does not print an array of ArangoUser as I'd expect, but an object of type IncomingMessage ...
});
const usersData = await db.listUsers();
console.log("Users data", usersData); // same as above ...
const userDBs = await db.listUserDatabases(); // this works OK, it prints the names of available databasess, as expected (array of strings ...)
The value of variables usersData in both examples above is the following:
Hi everyone,
I'm observing an odd behavior with the following script (using arangojs 7.7.0):
The value of variables
usersData
in both examples above is the following:Following this documentation I'd expect an array of
ArangoUser
objects, instead.Am I doing something wrong? Note that if I call another method (e.g.
listUserDatabases()
) I get the expected result (an array of strings).The text was updated successfully, but these errors were encountered: