MongoLink`
MongoLink`

MongoCollectionReplaceOne

MongoCollectionReplaceOne[MongoCollection[],filter,replacement]

replaces one document that matches the filter filter with the new document defined by replacement.

Details

Examples

Basic Examples  (1)

Connect to a client:

Connect to a the "WolframTestCollection" collection in the "WolframTestDB" database:

Replace the document that matches the filter <|"age"3|> with a new document: