Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
1+2 =