Skip to content

Commit 6d3217e

Browse files
committed
JT PR fixes 3
1 parent a29dfde commit 6d3217e

9 files changed

+22
-27
lines changed

composer/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "mongodb/docs-php-library",
33
"description": "MongoDB PHP Library Documentation",
44
"require": {
5-
"ext-mongodb": "^2.0",
6-
"mongodb/mongodb": "^2.0"
5+
"ext-mongodb": "^2.1",
6+
"mongodb/mongodb": "^2.1"
77
},
88
"require-dev": {
99
"doctrine/coding-standard": "^12.0",

source/reference/method/MongoDBClientBulkWrite-createWithCollection.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ Definition
1515

1616
.. phpmethod:: MongoDB\ClientBulkWrite::createWithCollection()
1717

18-
Create an instance of :phpclass:`MongoDB\ClientBulkWrite` from the provided
19-
:phpclass:`MongoDB\Collection` instance.
18+
Create an instance of the :phpclass:`MongoDB\ClientBulkWrite` builder
19+
from the provided :phpclass:`MongoDB\Collection` instance. You can
20+
add write operations to the ``ClientBulkWrite`` to create a new
21+
:php:`BulkWriteCommand <mongodb-driver-bulkwritecommand>` that the
22+
library sends to the server.
2023

2124
.. code-block:: php
2225

@@ -52,8 +55,6 @@ Parameters
5255
- mixed
5356
- .. include:: /includes/extracts/common-option-comment.rst
5457

55-
.. include:: /includes/extracts/option-requires-4.4.rst
56-
5758
* - let
5859
- array|object
5960
- .. include:: /includes/extracts/common-option-let.rst

source/reference/method/MongoDBClientBulkWrite-deleteMany.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ Parameters
5151
- string|array|object
5252
- .. include:: /includes/extracts/common-option-hint.rst
5353

54-
.. include:: /includes/extracts/option-requires-4.4.rst
55-
5654
Errors/Exceptions
5755
-----------------
5856

source/reference/method/MongoDBClientBulkWrite-deleteOne.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ Parameters
5151
- string|array|object
5252
- .. include:: /includes/extracts/common-option-hint.rst
5353

54-
.. include:: /includes/extracts/option-requires-4.4.rst
55-
5654
Errors/Exceptions
5755
-----------------
5856

source/reference/method/MongoDBClientBulkWrite-replaceOne.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ Parameters
5555
- string|array|object
5656
- .. include:: /includes/extracts/common-option-hint.rst
5757

58-
.. include:: /includes/extracts/option-requires-4.2.rst
59-
6058
* - sort
6159
- array|object
6260
- The sort specification for the ordering of the matched

source/reference/method/MongoDBClientBulkWrite-updateMany.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ Parameters
3636
``$update`` : array|object
3737
Specifies the field and value combinations to update and any relevant update
3838
operators. ``$update`` uses MongoDB's :manual:`update operators </reference/operator/update>`.
39-
Starting with MongoDB 4.2, you can pass an :manual:`aggregation pipeline
40-
</reference/command/update/#update-with-an-aggregation-pipeline>`
41-
as this parameter.
39+
You can pass an :manual:`aggregation pipeline
40+
</reference/command/update/#update-with-an-aggregation-pipeline>` as this parameter.
4241

4342
``$options`` : array
4443
An array specifying the desired options.
@@ -68,8 +67,6 @@ Parameters
6867
- string|array|object
6968
- .. include:: /includes/extracts/common-option-hint.rst
7069

71-
.. include:: /includes/extracts/option-requires-4.2.rst
72-
7370
* - upsert
7471
- boolean
7572
- If set to ``true``, creates a new document when no document matches the

source/reference/method/MongoDBClientBulkWrite-updateOne.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ Parameters
3636
``$update`` : array|object
3737
Specifies the field and value combinations to update and any relevant update
3838
operators. ``$update`` uses MongoDB's :manual:`update operators
39-
</reference/operator/update>`. Starting with MongoDB 4.2, an `aggregation
40-
pipeline <https://mongodb.com/docs/master/reference/command/update/#update-with-an-aggregation-pipeline>`_
41-
can be passed as this parameter.
39+
</reference/operator/update>`. You can pass an :manual:`aggregation pipeline
40+
</reference/command/update/#update-with-an-aggregation-pipeline>` as
41+
this parameter.
4242

4343
``$options`` : array
4444
An array specifying the desired options.
@@ -64,8 +64,6 @@ Parameters
6464
- string|array|object
6565
- .. include:: /includes/extracts/common-option-hint.rst
6666

67-
.. include:: /includes/extracts/option-requires-4.2.rst
68-
6967
* - sort
7068
- array|object
7169
- The sort specification for the ordering of the matched

source/reference/method/MongoDBClientBulkWrite-withCollection.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ Definition
1515

1616
.. phpmethod:: MongoDB\ClientBulkWrite::withCollection()
1717

18-
Return an instance of :phpclass:`MongoDB\ClientBulkWrite` from the provided
19-
:phpclass:`MongoDB\Collection` instance. This method allows you to
20-
add subsequent write operations on a different collection than that
21-
with which the ``MongoDB\ClientBulkWrite`` was created with.
18+
Return an updated instance of :phpclass:`MongoDB\ClientBulkWrite`
19+
from the provided :phpclass:`MongoDB\Collection` instance. This
20+
method allows you to add subsequent write operations on a different
21+
collection than that with which the ``ClientBulkWrite`` was created
22+
with.
23+
24+
This method does not build a new :php:`BulkWriteCommand
25+
<mongodb-driver-bulkwritecommand>` and does not edit the
26+
``ClientBulkWrite`` instance in place.
2227

2328
.. code-block:: php
2429

source/whats-new.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ What's New in 2.1
3636
The {+library-short+} v2.1 release includes the following features,
3737
improvements, and fixes:
3838

39-
- Implements a *client* bulk write API that allows you to perform write
39+
- Adds a *client* bulk write API to perform write
4040
operations on multiple databases and collections in the same call. To learn
4141
more about this feature, see the :ref:`php-client-bulk-write`
4242
section of the Bulk Write Operations guide.

0 commit comments

Comments
 (0)