Last time I moved some dates, I've noticed that they don't get updated anymore into an unknown state.
According to the usage of the $unset doc from MongoDB they use { $unset: { quantity: "", instock: "" } } with an empty string. Even if the specific declaration of the value is not necessary, I have used it as a guide.
Furthermore I've noticed that event inside the filter was of type string. Therefore a correct comparison wasn't possible.
Context
Last time I moved some dates, I've noticed that they don't get updated anymore into an unknown state. According to the usage of the $unset doc from MongoDB they use
{ $unset: { quantity: "", instock: "" } }
with an empty string. Even if the specific declaration of the value is not necessary, I have used it as a guide.Furthermore I've noticed that
event
inside the filter was of type string. Therefore a correct comparison wasn't possible.