MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / collection_distinct

Method collection_distinct

test/test_typing.py:156–159  ·  view source on GitHub ↗
(
            collection: Collection,
        )

Source from the content-addressed store, hash-verified

154 )
155
156 def collection_distinct(
157 collection: Collection,
158 ) -> list[None | int | str | ObjectId | bool]:
159 return collection.distinct("_id")
160
161 def cursor_distinct(
162 collection: Collection,

Callers

nothing calls this directly

Calls 1

distinctMethod · 0.45

Tested by

no test coverage detected