The document structure looks like below -
{
"nestedDocArray" : [
{
"a" : "a",
"b" : "b",
"c" : "c",
"createdOn" : ISODate("2018-06-19T08:38:34.228Z")
},
{
"a" : "a1",
"b" : "b1000",
"c" : "c1",
"createdOn" : ISODate("2018-06-19T08:38:34.233Z")
},
{
"a" : "a1000",
"b" : "b1000",
"c" : "c1000",
"createdOn" : ISODate("2018-06-21T10:54:30.679Z")
}
]
}
If I try to do a $push, $pull and $set on the same nestedDocArray attribute in a single update statement, it results in the exception "Updating the path 'nestedDocArray' would create a conflict at 'nestedDocArray'"