index method
Retrieves all resources.
Implementation
@override
Future<List<Map<String, dynamic>>> index(
[Map<String, dynamic>? params]) async {
return await (collection.find(_makeQuery(params)))
.map((x) => _jsonify(x, params))
.toList();
}