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