public batchInsert ( array | string $collection, array $rows, array $options = [] ) : array | ||
$collection | array | string | collection name. |
$rows | array | array of arrays or objects to be inserted. |
$options | array | list of options in format: optionName => optionValue. |
Результат | array | inserted data, each row will have "_id" key assigned to it. |