MongoLink`
MongoLink`

MongoCollectionUpdateMany

MongoCollectionUpdateMany[MongoCollection[],filter,update]

updates one or more documents that match the filter filter with the modification defined by update.

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]=

Update the "age" field of every document whose "age" is 4 with an age of 13:

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