Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Number of documents in Mongodb

exports.success = async function(req, res, next){
res.json(await Message.find().countDocuments());
}
 
PREVIOUS NEXT
Tagged: #Number #documents #Mongodb
ADD COMMENT
Topic
Name
5+5 =