InsertManyOperation constructor
InsertManyOperation(
- DbCollection collection,
- List<
Map< documents, {String, dynamic> > - InsertManyOptions? insertManyOptions,
- Map<
String, Object> ? rawOptions,
Implementation
InsertManyOperation(
DbCollection collection, List<Map<String, dynamic>> documents,
{InsertManyOptions? insertManyOptions, Map<String, Object>? rawOptions})
: super(
collection,
documents,
insertOptions: insertManyOptions,
rawOptions: rawOptions,
) {
if (documents.isEmpty) {
throw ArgumentError(
'At least one document required in InsertManyOperation');
}
}