File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ Definition
4343 ],
4444 ordered: <boolean>,
4545 writeConcern: { <write concern> },
46+ maxTimeMS: <int>,
4647 let: <document> // Added in MongoDB 5.0
4748 }
4849
@@ -114,6 +115,15 @@ Definition
114115
115116 .. versionadded:: 4.4
116117
118+ * - ``maxTimeMS``
119+
120+ - positive integer
121+
122+ - Optional. The cumulative time limit in milliseconds for processing operations on
123+ the cursor. MongoDB aborts the operation at the earliest following
124+ :term:`interrupt point`.
125+
126+ *Supported on mongos since MongoDB 5.0, only supported on mongod in previous version
117127
118128 * - :ref:`let <delete-let-syntax>`
119129
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ Definition
2929 ordered: <boolean>,
3030 writeConcern: { <write concern> },
3131 bypassDocumentValidation: <boolean>,
32- comment: <any>
32+ comment: <any>,
33+ maxTimeMS: <int>
3334 }
3435
3536 The :dbcommand:`insert` command takes the following fields:
@@ -103,6 +104,15 @@ Definition
103104
104105 .. versionadded:: 4.4
105106
107+ * - ``maxTimeMS``
108+
109+ - positive integer
110+
111+ - Optional. The cumulative time limit in milliseconds for processing operations on
112+ the cursor. MongoDB aborts the operation at the earliest following
113+ :term:`interrupt point`.
114+
115+ *Supported on mongos since MongoDB 5.0, only supported on mongod in previous version
106116
107117 :returns:
108118
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ The :dbcommand:`update` command has the following syntax:
5959 writeConcern: { <write concern> },
6060 bypassDocumentValidation: <boolean>,
6161 comment: <any>,
62+ maxTimeMS: <int>,
6263 let: <document> // Added in MongoDB 5.0
6364 }
6465 )
@@ -139,6 +140,15 @@ The command takes the following fields:
139140
140141 .. versionadded:: 4.4
141142
143+ * - ``maxTimeMS``
144+
145+ - positive integer
146+
147+ - Optional. The cumulative time limit in milliseconds for processing operations on
148+ the cursor. MongoDB aborts the operation at the earliest following
149+ :term:`interrupt point`.
150+
151+ *Supported on mongos since MongoDB 5.0, only supported on mongod in previous version
142152
143153 * - :ref:`let <update-let-syntax>`
144154
You can’t perform that action at this time.
0 commit comments