Schema example:
_id: ObjectId
list: [{field: String}]
If I want to add an array of objects into list - how can I do that?
E.g. I have document like here:
{
_id: 1
list: [
{field: "value1"}, {field: "value2"}
]
}
And I want to add into the list this array:
[{field: "val3"}, {field: "val4"}, {field: "val5"}]
Is there a way to do it?