Skip to content

Commit 120e1c2

Browse files
author
Dave Cuthbert
authored
DOCSP-25972-clarify update requirements (#2027)
* DOCSP-25972-clarify update requirements * Review feedback
1 parent fbb9569 commit 120e1c2

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

source/core/timeseries/timeseries-limitations.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,7 @@ Delete commands must meet the following requirements:
6161

6262
Update commands must meet the following requirements:
6363

64-
- The query may only match on ``metaField`` field values.
65-
- The update command may only modify the ``metaField`` field value.
66-
- The update must be performed with an update document that contains
67-
only :ref:`update operator <update-operators>` expressions.
68-
- The update command may not limit the number of documents to be
69-
updated. You must use an update command with ``multi: true`` or the
70-
:method:`~db.collection.updateMany()` method.
71-
- The update command may not set :ref:`upsert: true <update-upsert>`.
64+
.. include:: /includes/time-series/fact-update-limitations.rst
7265

7366
In MongoDB 5.0, :ref:`Time series collections
7467
<manual-timeseries-collection>` only support insert operations and read
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- The query only matches on ``metaField`` field values.
2+
- The update command only modifies the ``metaField`` field value.
3+
- The update document can only contain :ref:`update operator
4+
<update-operators>` expressions.
5+
- The update command must not limit the number of documents to be
6+
updated. Set ``multi: true`` or use the
7+
:method:`~db.collection.updateMany()` method.
8+
- The update command must not set :ref:`upsert: true <update-upsert>`.

source/reference/method/db.collection.updateMany.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,11 @@ Time Series Collections
288288

289289
The :method:`~db.collection.updateMany()` method is available for
290290
:term:`time series collections <time series collection>` starting in
291-
MongoDB 5.1.
291+
MongoDB 5.1.
292+
293+
Update commands must meet the following requirements:
294+
295+
.. include:: /includes/time-series/fact-update-limitations.rst
292296

293297
.. _updateMany-sharded-collection:
294298

0 commit comments

Comments
 (0)