|
MongoDB\Driver\WriteResult::isAcknowledgedReturns whether the write was acknowledged Description
final public bool MongoDB\Driver\WriteResult::isAcknowledged()
If the write is acknowledged, other count fields will be available on the MongoDB\Driver\WriteResult object. ParametersThis function has no parameters. Return Values
Returns Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\WriteResult::isAcknowledged with acknowledged write concern
The above example will output: bool(true) Example #2 MongoDB\Driver\WriteResult::isAcknowledged with unacknowledged write concern
The above example will output: bool(false) See Also
|