Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
https://docs.mongodb.com/manual/reference/method/d...
google translate:
replaceOne() replaces the first found document in the collection that matches the filter with document replace.
If upsert: is true and no documents match the filter, replaceOne() creates a new document based on the document replacement. See Replace Upsert.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question