Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose find multiple and delete

Model.deleteMany({ expires: { $lte: Date.now() } })
 
PREVIOUS NEXT
Tagged: #mongoose #find #multiple #delete
ADD COMMENT
Topic
Name
3+2 =