(
collection: Collection,
)
| 159 | return collection.distinct("_id") |
| 160 | |
| 161 | def cursor_distinct( |
| 162 | collection: Collection, |
| 163 | ) -> list[None | int | str | ObjectId | bool]: |
| 164 | cursor = collection.find() |
| 165 | return cursor.distinct("_id") |
| 166 | |
| 167 | collection_distinct(self.coll) |
| 168 | cursor_distinct(self.coll) |