Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete document mongoose

Tank.deleteOne({ size: 'large' }, function (err) {
  if (err) return handleError(err);
  // deleted at most one tank document
});
Source by careerfoundry.com #
 
PREVIOUS NEXT
Tagged: #delete #document #mongoose
ADD COMMENT
Topic
Name
4+5 =