Inserts multiple documents into this collection
public batchInsert ( array &$a, array $options = [] ) : mixed | ||
$a | array | An array of arrays. |
$options | array | Options for the inserts. |
return | mixed | If "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occured ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise. |