@@ -245,30 +245,6 @@ Parameters
245
245
246
246
This will be used for the returned command result document.
247
247
248
- * - validator
249
- - array|object
250
- - Allows users to specify :manual:`validation rules or expressions
251
- </core/document-validation>` for the collection. For more information,
252
- see :manual:`Document Validation </core/document-validation>` in the
253
- MongoDB manual.
254
-
255
- The ``validator`` option takes an array that specifies the validation
256
- rules or expressions. You can specify the expressions using the same
257
- operators as MongoDB's
258
- :manual:`query operators </reference/operator/query>` with the
259
- exception of :query:`$geoNear`, :query:`$near`, :query:`$nearSphere`,
260
- :query:`$text`, and :query:`$where`.
261
-
262
- .. note::
263
-
264
- - Validation occurs during updates and inserts. Existing documents
265
- do not undergo validation checks until modification.
266
-
267
- - You cannot specify a validator for collections in the ``admin``,
268
- ``local``, and ``config`` databases.
269
-
270
- - You cannot specify a validator for ``system.*`` collections.
271
-
272
248
* - validationAction
273
249
- string
274
250
- Determines whether to ``error`` on invalid documents or just ``warn``
@@ -315,6 +291,30 @@ Parameters
315
291
*valid* documents. Do not apply rules to updates on existing
316
292
*invalid* documents.
317
293
294
+ * - validator
295
+ - array|object
296
+ - Allows users to specify :manual:`validation rules or expressions
297
+ </core/document-validation>` for the collection. For more information,
298
+ see :manual:`Document Validation </core/document-validation>` in the
299
+ MongoDB manual.
300
+
301
+ The ``validator`` option takes an array that specifies the validation
302
+ rules or expressions. You can specify the expressions using the same
303
+ operators as MongoDB's
304
+ :manual:`query operators </reference/operator/query>` with the
305
+ exception of :query:`$geoNear`, :query:`$near`, :query:`$nearSphere`,
306
+ :query:`$text`, and :query:`$where`.
307
+
308
+ .. note::
309
+
310
+ - Validation occurs during updates and inserts. Existing documents
311
+ do not undergo validation checks until modification.
312
+
313
+ - You cannot specify a validator for collections in the ``admin``,
314
+ ``local``, and ``config`` databases.
315
+
316
+ - You cannot specify a validator for ``system.*`` collections.
317
+
318
318
* - viewOn
319
319
- string
320
320
- The name of the source collection or view from which to create the view.
0 commit comments