@@ -55,7 +55,7 @@ operation:
5555 db.restaurants.update(
5656 { "address.zipcode": "10016" },
5757 {
58- $set: { "borough": "Midtown " },
58+ $set: { "borough": "Manhattan " },
5959 $currentDate: { "lastModified": true }
6060 },
6161 { multi: true }
@@ -117,7 +117,7 @@ operation:
117117 db.restaurants.update(
118118 { "address.zipcode": "10016" },
119119 {
120- "$set": { "borough": "Midtown " },
120+ "$set": { "borough": "Manhattan " },
121121 "$currentDate": { "lastModified": True }
122122 },
123123 multi=True
@@ -214,7 +214,7 @@ pre: |
214214
215215 The following operation updates *all* documents that have
216216 ``address.zipcode`` field equal to ``"10016"``, setting the ``borough``
217- field to ``"Midtown "`` and the ``lastModified`` field to the current
217+ field to ``"Manhattan "`` and the ``lastModified`` field to the current
218218 date.
219219operation :
220220 - pre : |
@@ -225,7 +225,7 @@ operation:
225225 db.collection('restaurants').updateMany(
226226 { "address.zipcode": "10016" },
227227 {
228- $set: { "borough": "Midtown " },
228+ $set: { "borough": "Manhattan " },
229229 $currentDate: { "lastModified": true }
230230 },
231231 function(err, results) {
@@ -281,7 +281,7 @@ pre: |
281281
282282 The following operation updates *all* documents that have
283283 ``address.zipcode`` field equal to ``"10016"``, setting the ``borough``
284- field to ``"Midtown "`` and the ``lastModified`` field to the current
284+ field to ``"Manhattan "`` and the ``lastModified`` field to the current
285285 date.
286286replacement :
287287 updateMethod : " ``update_many``"
0 commit comments