mongodb\Command batchInsert()

batchInsert() public method

Inserts batch of new documents into collection.

public array|false batchInsert ( $collectionName, $documents, $options = [] )
$collectionName string

Collection name

$documents array[]

Documents list

$options array

List of options in format: optionName => optionValue.

return array|false

List of inserted IDs, false on failure.

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.