insertMany method

Future<void> insertMany(
  1. List<T> documents
)

Implementation

Future<void> insertMany(List<T> documents) async {
  final response = await _harnCollection.insertMany(documents.map((e) {
    Map<String, dynamic> data = e.toMap();
    return parseInsertData(data);
  }).toList());
  harnLog.register({"insertMany": documents});
  return response;
}