I have briefly searched through the internet but i haven't found anything useful.
My problem is that i can't retrieve the list of my database collections with the the function :
db.listCollections().
So simply what i did is the following:
const db = client.db(db_name);
let colls = db.listCollections() // also tried db.listCollections({}, {nameOnly: true});
But all i get is a large object that doesn't mention any collections. Am i missing something big? I assumed that i would retrieve an array but no luck to that, sooo... can anyone quickly help out here?
Thanks in advance!