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)

In[1]:=
Click for copyable input

Connect to a client:

In[1]:=
Click for copyable input
Out[1]=

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

In[1]:=
Click for copyable input
Out[1]=

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

In[1]:=
Click for copyable input
Out[1]=