File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ Definition
99
1010.. phpclass:: MongoDB\ClientBulkWrite
1111
12- This class enables you to assemble a bulk write command to pass to
13- :phpmethod:`MongoDB\Client::bulkWrite()` to perform write operations
14- across multiple namespaces.
12+ This class enables you to assemble a bulk write command that you
13+ pass to :phpmethod:`MongoDB\Client::bulkWrite()` to perform write
14+ operations across multiple namespaces.
1515
16- This class is a builder to instantiate a :php:`BulkWriteCommand
16+ ``ClientBulkWrite`` is a builder class to create a :php:`BulkWriteCommand
1717 <mongodb-driver-bulkwritecommand>` instance that the library sends to the
1818 server.
1919
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ Parameters
3737
3838 We recommend using the ``ClientBulkWrite`` builder class and
3939 methods to specify write operations in a bulk write command instead
40- of using the ``BulkWriteCommand`` class.
40+ of using the ``BulkWriteCommand`` class. ``ClientBulkWrite``
41+ provides a fluent API with methods similar to CRUD methods from the
42+ :phpclass:`MongoDB\Collection` class.
4143
4244 Represents the assembled bulk write command or builder.
4345 :phpmethod:`MongoDB\Client::bulkWrite()` supports
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ Definition
2626 Collection $collection,
2727 ): self
2828
29-
3029 You cannot mix ``Collection`` instances associated with different
31- ``Manager`` objects because the library sends the client bulk
32- write operation as a command to a single server.
30+ ``Manager`` objects when calling this method on a ``ClientBulkWrite``
31+ instance. This is because the library sends the completed
32+ ``BulkWriteCommand`` to a single server.
3333
3434Parameters
3535----------
You can’t perform that action at this time.
0 commit comments