What is return type of db.collection.find() in mongodb You can simply use: collection.find().toArray();