|
MongoDB\Driver\WriteResult::getUpsertedCountReturns the number of documents inserted by an upsert Description
final public int|null MongoDB\Driver\WriteResult::getUpsertedCount
( void
)
ParametersThis function has no parameters. Return ValuesReturns the number of documents inserted by an upsert. Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\WriteResult::getUpsertedCount example
<?php The above example will output: int(2) See Also
|