Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb empty an array field

db.collection.update({}, { $set : {'myArray': [] }} , {multi:true} )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongodb #empty #array #field
ADD COMMENT
Topic
Name
1+9 =