List<dynamic> distinct(String fieldName) { final Set<dynamic> values = {}; for (final document in collection.values) { values.add(document[fieldName]); } return values.toList(); }