Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of PHP Library Manual, refer to the upgrade documentation.

Write Result Classes


MongoDB\DeleteResult

Definition

MongoDB\DeleteResult

This class contains information about an executed delete operation. It encapsulates a MongoDB\Driver\WriteResult object and is returned from MongoDB\Collection::deleteMany() or MongoDB\Collection::deleteOne().


MongoDB\InsertManyResult

Definition

MongoDB\InsertManyResult

This class contains information about an executed bulk insert operation. It encapsulates a MongoDB\Driver\WriteResult object and is returned from MongoDB\Collection::insertMany().


MongoDB\InsertOneResult

Definition

MongoDB\InsertOneResult

This class contains information about an executed insert operation. It encapsulates a MongoDB\Driver\WriteResult object and is returned from MongoDB\Collection::insertOne().