db.getCollection('name').update({"bid":"3860"},
{
[
{"$set":
{ "tl" :
{ $add :
[
{
$multiply: ["$intField", 24*60*60*1000]
},
"$dateField"
]
}
}
},
{ "$unset": {'intField' : 1}}
]
}
}
)
I am able to do $set. I am trying to do $unset also in single call.
is it possible? Mongo Version is 4.2. Any suggestions please?