Skip to content

Commit bfebc1f

Browse files
authored
DOCSP-26593 updates copy to correctly reference updateMany rather than updateOne (#2356)
1 parent 58841f6 commit bfebc1f

File tree

1 file changed

+2
-2
lines changed
  • source/reference/operator/query

1 file changed

+2
-2
lines changed

source/reference/operator/query/gte.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ Example output:
8989
price: 9.99
9090
}
9191

92-
This :method:`~db.collection.updateOne()` operation searches for an
92+
This :method:`~db.collection.updateMany()` operation searches for an
9393
embedded document, ``carrier``, with a subfield named ``fee``. It sets
9494
``{ price: 9.99 }`` in each document where ``fee`` has a value greater
9595
than or equal to 2.
9696

9797
To set the value of the ``price`` field in only the first document
9898
where ``carrier.fee`` is greater than 2, use
99-
:method:`~db.collection.updateOne()`.
99+
:method:`~db.collection.updateMany()`.
100100

101101
.. seealso::
102102

0 commit comments

Comments
 (0)