Hi @Roman_Rostock ,
I think User.find(); gives a “Query” object back.
To my understanding now you will need to build the array in a callback function:
YourModel.find({}, function (err, docs) {
// docs is an array of all docs in collection
});
Now in a MongoDB Driver we return a cursor and this one has Collection.find().toArray()
Thanks
Pavel