I'm trying to update a collection field and add a new data to a subdocument(array). Is there anyway it can be done in one call?
I want to update an document from:
{
last_modified:dateObj,
subDoc:[]
}
To the following:
{
last_modified:new DateObj,
subDoc:[{newObj:newObj}]
}