Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb unshift array

// You must use $each!
$push: { colors: { $each: ['yellow'], $position: 0 } }
 
PREVIOUS NEXT
Tagged: #mongodb #unshift #array
ADD COMMENT
Topic
Name
3+6 =