Skip to content

Commit 32a1cf8

Browse files
PHPLIB-749: Support comment option on command helpers (#925)
Co-authored-by: Jeremy Mikola <[email protected]>
1 parent 1ee1243 commit 32a1cf8

File tree

82 files changed

+679
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+679
-177
lines changed

docs/includes/apiargs-MongoDBClient-method-dropDatabase-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
source:
2+
file: apiargs-common-option.yaml
3+
ref: comment
4+
post: |
5+
This is not supported for server versions prior to 4.4 and will result in an
6+
exception at execution time if used.
7+
8+
.. versionadded:: 1.13
9+
---
110
source:
211
file: apiargs-common-option.yaml
312
ref: session

docs/includes/apiargs-MongoDBClient-method-listDatabases-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ interface: phpmethod
1313
operation: ~
1414
optional: true
1515
---
16+
source:
17+
file: apiargs-common-option.yaml
18+
ref: comment
19+
post: |
20+
This is not supported for server versions prior to 4.4 and will result in an
21+
exception at execution time if used.
22+
23+
.. versionadded:: 1.13
24+
---
1625
arg_name: option
1726
name: filter
1827
type: array|object

docs/includes/apiargs-MongoDBClient-method-watch-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ source:
77
file: apiargs-common-option.yaml
88
ref: collation
99
---
10+
source:
11+
file: apiargs-common-option.yaml
12+
ref: comment
13+
post: |
14+
The comment can be any valid BSON type for server versions 4.4 and above.
15+
Earlier server versions only support string values.
16+
17+
.. versionadded:: 1.13
18+
---
1019
source:
1120
file: apiargs-method-watch-option.yaml
1221
ref: fullDocument

docs/includes/apiargs-MongoDBCollection-method-aggregate-option.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ source:
1111
ref: bypassDocumentValidation
1212
---
1313
source:
14-
file: apiargs-aggregate-option.yaml
14+
file: apiargs-common-option.yaml
1515
ref: comment
1616
post: |
17+
The comment can be any valid BSON type for server versions 4.4 and above.
18+
Earlier server versions only support string values.
19+
1720
.. versionadded:: 1.3
1821
---
1922
source:

docs/includes/apiargs-MongoDBCollection-method-bulkWrite-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ source:
22
file: apiargs-MongoDBCollection-common-option.yaml
33
ref: bypassDocumentValidation
44
---
5+
source:
6+
file: apiargs-common-option.yaml
7+
ref: comment
8+
post: |
9+
This is not supported for server versions prior to 4.4 and will result in an
10+
exception at execution time if used.
11+
12+
.. versionadded:: 1.13
13+
---
514
source:
615
file: apiargs-common-option.yaml
716
ref: let

docs/includes/apiargs-MongoDBCollection-method-count-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ source:
22
file: apiargs-MongoDBCollection-common-option.yaml
33
ref: collation
44
---
5+
source:
6+
file: apiargs-common-option.yaml
7+
ref: comment
8+
post: |
9+
This is not supported for server versions prior to 4.4 and will result in an
10+
exception at execution time if used.
11+
12+
.. versionadded:: 1.13
13+
---
514
arg_name: option
615
name: hint
716
type: string|array|object

docs/includes/apiargs-MongoDBCollection-method-countDocuments-option.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ source:
22
file: apiargs-MongoDBCollection-common-option.yaml
33
ref: collation
44
---
5+
source:
6+
file: apiargs-common-option.yaml
7+
ref: comment
8+
post: |
9+
The comment can be any valid BSON type for server versions 4.4 and above.
10+
Earlier server versions only support string values.
11+
---
512
arg_name: option
613
name: hint
714
type: string|array|object

docs/includes/apiargs-MongoDBCollection-method-createIndex-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ interface: phpmethod
1717
operation: ~
1818
optional: true
1919
---
20+
source:
21+
file: apiargs-common-option.yaml
22+
ref: comment
23+
post: |
24+
This is not supported for server versions prior to 4.4 and will result in an
25+
exception at execution time if used.
26+
27+
.. versionadded:: 1.13
28+
---
2029
arg_name: option
2130
name: unique
2231
type: boolean

docs/includes/apiargs-MongoDBCollection-method-createIndexes-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
source:
2+
file: apiargs-common-option.yaml
3+
ref: comment
4+
post: |
5+
This is not supported for server versions prior to 4.4 and will result in an
6+
exception at execution time if used.
7+
8+
.. versionadded:: 1.13
9+
---
110
source:
211
file: apiargs-MongoDBCollection-method-createIndex-option.yaml
312
ref: commitQuorum

docs/includes/apiargs-MongoDBCollection-method-deleteMany-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ source:
22
file: apiargs-MongoDBCollection-common-option.yaml
33
ref: collation
44
---
5+
source:
6+
file: apiargs-common-option.yaml
7+
ref: comment
8+
post: |
9+
This is not supported for server versions prior to 4.4 and will result in an
10+
exception at execution time if used.
11+
12+
.. versionadded:: 1.13
13+
---
514
source:
615
file: apiargs-common-option.yaml
716
ref: hint

0 commit comments

Comments
 (0)