Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongo delete a key in matching documents

db.collection_name.update({ _id: 1234 }, { $unset : { description : 1} })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongo #delete #key #matching #documents
ADD COMMENT
Topic
Name
2+6 =