insertMany method
Inserts nultiple documents into the collection.
Implementation
void insertMany(List<Map<String, dynamic>> documents) {
var documentsNew = <Map<String, dynamic>>[];
for (var document in documents) {
document[key_id] ??= ObjectId();
documentsNew.add(<String, dynamic>{...document});
ids.add(document[key_id]);
overallInsertDocuments.add(document);
}
_setCommand(InsertManyOperation(collection!, documentsNew));
}