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
_id
property? 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
_id
of 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.