Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs Menu
Docs Home
/ /

MongoDB\InsertOneResult Class

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().

Back

isAcknowledged()