Anzahl der Dokumente in MongoDB
exports.success = async function(req, res, next){
res.json(await Message.find().countDocuments());
}
Javasper
exports.success = async function(req, res, next){
res.json(await Message.find().countDocuments());
}