Skip to content

Commit bd843cf

Browse files
committed
PHPLIB-491: Support hint for update command
Spec tests from mongodb/specifications@60adafc
1 parent 3bc1501 commit bd843cf

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

source/includes/apiargs-MongoDBCollection-method-replaceOne-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ source:
1010
file: apiargs-MongoDBCollection-common-option.yaml
1111
ref: collation
1212
---
13+
source:
14+
file: apiargs-common-option.yaml
15+
ref: hint
16+
post: |
17+
This option is available in MongoDB 4.2+ and will result in an exception at
18+
execution time if specified for an older server version.
19+
20+
.. versionadded:: 1.6
21+
---
1322
source:
1423
file: apiargs-common-option.yaml
1524
ref: session

source/includes/apiargs-MongoDBCollection-method-updateMany-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ source:
1616
file: apiargs-MongoDBCollection-common-option.yaml
1717
ref: collation
1818
---
19+
source:
20+
file: apiargs-common-option.yaml
21+
ref: hint
22+
post: |
23+
This option is available in MongoDB 4.2+ and will result in an exception at
24+
execution time if specified for an older server version.
25+
26+
.. versionadded:: 1.6
27+
---
1928
source:
2029
file: apiargs-common-option.yaml
2130
ref: session

source/includes/apiargs-MongoDBCollection-method-updateOne-option.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ source:
1616
file: apiargs-MongoDBCollection-common-option.yaml
1717
ref: collation
1818
---
19+
source:
20+
file: apiargs-common-option.yaml
21+
ref: hint
22+
post: |
23+
This option is available in MongoDB 4.2+ and will result in an exception at
24+
execution time if specified for an older server version.
25+
26+
.. versionadded:: 1.6
27+
---
1928
source:
2029
file: apiargs-common-option.yaml
2130
ref: session

0 commit comments

Comments
 (0)