Skip to content

Commit 43d70c6

Browse files
author
Michael Paik
committed
DOCS-4997
1 parent 214a36c commit 43d70c6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

primer/source/includes/examples-query-sort.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ operation:
4444
code: |
4545
import pymongo
4646
cursor = db.restaurants.find().sort( [
47-
( "borough", pymongo.ASCENDING),
47+
( "borough", pymongo.ASCENDING ),
4848
( "address.zipcode", pymongo.DESCENDING )
4949
] )
5050
- pre: |

primer/source/includes/examples-update-fields-base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ pre: |
3030
3131
The following operation updates *all* documents that have
3232
``address.zipcode`` field equal to ``"10016"``, setting the ``borough``
33-
field to ``"Midtown"`` and the ``lastModified`` field to the current
33+
field to ``"Manhattan"`` and the ``lastModified`` field to the current
3434
date.
3535
...

primer/source/includes/examples-update-fields.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
219219
operation:
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.
286286
replacement:
287287
updateMethod: "``update_many``"

0 commit comments

Comments
 (0)