You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the findOneAndReplace API is called with upsert flag set to true, the new document is generated with the given properties in the replacement part of the request, but the _id is not generated. In the below example, you could see _id and upsertedId are not set in the final response.
When the
findOneAndReplace
API is called withupsert
flag set to true, the new document is generated with the given properties in thereplacement
part of the request, but the_id
is not generated. In the below example, you could see_id
andupsertedId
are not set in the final response.To replicate the issue;
The text was updated successfully, but these errors were encountered: