Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

enum mongoose doesnt trigger error

Order.update(
  { _id: orderId, shop: shopId },
  { $set: { status: status }},
  { upsert: true, runValidators: true }, function(err) {
    console.log(err);
    callback(err);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #enum #mongoose #doesnt #trigger #error
ADD COMMENT
Topic
Name
5+8 =