readMany method
Reads multiple resources at once.
Service implementations should override this to ensure data is fetched within a single round trip.
Implementation
@override
Future<List<Map<String, dynamic>>> readMany(List<String> ids,
[Map<String, dynamic>? params]) async {
var q = _makeQuery(params);
q = ids.fold(q, (q, id) => q!.or(where.id(_makeId(id))));
return await (collection.find(q)).map((x) => _jsonify(x, params)).toList();
}