how to update date in findoneandupsate mongodb code example
Example: mongodb updateone
db.<collection>.updateOne({ id : 8400704 },{ $set: { name : "John" } })
db.<collection>.updateOne({ id : 8400704 },{ $set: { name : "John" } })