Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb mongoose update delete key

db.products.update(
   { sku: "unknown" },
   { $unset: { quantity: "", instock: "" } }
)
Source by docs.mongodb.com #
 
PREVIOUS NEXT
Tagged: #mongodb #mongoose #update #delete #key
ADD COMMENT
Topic
Name
3+6 =