File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,7 @@ Delete commands must meet the following requirements:
61
61
62
62
Update commands must meet the following requirements:
63
63
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
72
65
73
66
In MongoDB 5.0, :ref:`Time series collections
74
67
<manual-timeseries-collection>` only support insert operations and read
Original file line number Diff line number Diff line change
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 >`.
Original file line number Diff line number Diff line change @@ -288,7 +288,11 @@ Time Series Collections
288
288
289
289
The :method:`~db.collection.updateMany()` method is available for
290
290
: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
292
296
293
297
.. _updateMany-sharded-collection:
294
298
You can’t perform that action at this time.
0 commit comments