MongoDB\InsertManyResult Class

For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

MongoDB\InsertManyResult Class

Definition

This class contains information about an executed bulk insert operation. It encapsulates a MongoDB\Driver\WriteResult object and is returned from [MongoDB\Collection::insertMany().](https://www.mongodb.com/docs/php-library/current/reference/method/mongodbcollection-insertmany.md#mongodb-phpmethod-phpmethod.MongoDB-Collection--insertMany--

Methods

  • [MongoDB\InsertManyResult::getInsertedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/mongodbinsertmanyresult-getinsertedcount.md#mongodb-phpmethod-phpmethod.MongoDB-InsertManyResult--getInsertedCount--

  • [MongoDB\InsertManyResult::getInsertedIds()](https://www.mongodb.com/docs/php-library/current/reference/method/mongodbinsertmanyresult-getinsertedids.md#mongodb-phpmethod-phpmethod.MongoDB-InsertManyResult--getInsertedIds--

  • [MongoDB\InsertManyResult::isAcknowledged()](https://www.mongodb.com/docs/php-library/current/reference/method/mongodbinsertmanyresult-isacknowledged.md#mongodb-phpmethod-phpmethod.MongoDB-InsertManyResult--isAcknowledged--