Reference/Operators/Array Update/$each$eachThe `$each` modifier is used with $push and $addToSet operators to add multiple values to an array field.Syntax{ $push: { field: { $each: [ <value1>, <value2>, ... ] } } }ParametersfieldstringrequiredThe field to update.<value1>, <value2>stringrequiredThe values to add to the array.
Reference/Operators/Array Update/$each$eachThe `$each` modifier is used with $push and $addToSet operators to add multiple values to an array field.Syntax{ $push: { field: { $each: [ <value1>, <value2>, ... ] } } }ParametersfieldstringrequiredThe field to update.<value1>, <value2>stringrequiredThe values to add to the array.