Skip to content

Commit b8220d0

Browse files
committed
Order options alphabetically
1 parent 299cc59 commit b8220d0

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

docs/reference/method/MongoDBDatabase-createCollection.txt

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -245,30 +245,6 @@ Parameters
245245

246246
This will be used for the returned command result document.
247247

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-
272248
* - validationAction
273249
- string
274250
- Determines whether to ``error`` on invalid documents or just ``warn``
@@ -315,6 +291,30 @@ Parameters
315291
*valid* documents. Do not apply rules to updates on existing
316292
*invalid* documents.
317293

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+
318318
* - viewOn
319319
- string
320320
- The name of the source collection or view from which to create the view.

docs/reference/method/MongoDBDatabase-dropCollection.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ Parameters
4141
- Type
4242
- Description
4343

44+
* - comment
45+
- mixed
46+
- .. include:: /includes/extracts/common-option-comment.rst
47+
48+
This is not supported for server versions prior to 4.4 and will result
49+
in an exception at execution time if used.
50+
51+
.. versionadded:: 1.13
52+
4453
* - encryptedFields
4554
- array|object
4655
- A document describing encrypted fields for queryable encryption. If
@@ -61,15 +70,6 @@ Parameters
6170

6271
.. versionadded:: 1.13
6372

64-
* - comment
65-
- mixed
66-
- .. include:: /includes/extracts/common-option-comment.rst
67-
68-
This is not supported for server versions prior to 4.4 and will result
69-
in an exception at execution time if used.
70-
71-
.. versionadded:: 1.13
72-
7373
* - session
7474
- :php:`MongoDB\\Driver\\Session <class.mongodb-driver-session>`
7575
- .. include:: /includes/extracts/common-option-session.rst

docs/reference/method/MongoDBDatabase-renameCollection.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ Parameters
6363

6464
.. versionadded:: 1.13
6565

66+
* - dropTarget
67+
- boolean
68+
- If ``true``, MongoDB will drop the target before renaming the
69+
collection. The default value is ``false``.
70+
6671
* - session
6772
- :php:`MongoDB\\Driver\\Session <class.mongodb-driver-session>`
6873
- .. include:: /includes/extracts/common-option-session.rst
@@ -77,11 +82,6 @@ Parameters
7782
- :php:`MongoDB\\Driver\\WriteConcern <class.mongodb-driver-writeconcern>`
7883
- .. include:: /includes/extracts/database-option-writeConcern.rst
7984

80-
* - dropTarget
81-
- boolean
82-
- If ``true``, MongoDB will drop the target before renaming the
83-
collection. The default value is ``false``.
84-
8585
Return Values
8686
-------------
8787

0 commit comments

Comments
 (0)