Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add property to all documents mongo


db.collection.update({'_id' : ObjectId(...)}, 
                     {'$set' : {'create_time' : datetime(..) }})

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #add #property #documents #mongo
ADD COMMENT
Topic
Name
7+6 =