Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /

MongoDB\InsertOneResult::isAcknowledged()

MongoDB\InsertOneResult::isAcknowledged()

Return whether the write was acknowledged.

function isAcknowledged(): boolean

A boolean indicating whether the write was acknowledged.

  • MongoDB\Driver\WriteResult::isAcknowledged()

  • Write Concern in the MongoDB manual

Back

getInsertedId()

On this page