executeBatch() public method
Execute commands batch (bulk).
| public array executeBatch ( $collectionName, $options = [] ) | ||
|---|---|---|
| $collectionName | string |
Collection name. |
| $options | array |
Batch options. |
| return | array |
Array of 2 elements:
|
| throws | yii\mongodb\Exception |
on failure. |
| throws | yii\base\InvalidConfigException |
on invalid $document format. |
Please login to continue.