Methods
replaceOne()
The replaceOne() method is used to interact with collections in MongoDB.
replaceOne()
The replaceOne() method is used to interact with collections in MongoDB.
Syntax
db.collection.replaceOne(...)
Example
db.users.replaceOne(...)