I'm referring to the Mongo Node driver's findOneAndReplace method.
Two questions:
Is it true that you can't pass a replacement object with an
_idproperty? It wasn't working when I was passing that property, and started working when I removed the property.When the object gets replaced in the database, what will the
_idof the new object be? For me it seems that it's the same as the old_id, but I'm not sure if there are situations where this won't be the case.