[PYTHON] Distinct with pymongo

col is a collection object

col.distinct(column_name, {'pokopoko':'poko'})

Then TypeError: distinct () takes exactly 2 arguments (3 given)

col.find({'pokopoko':'poko'}).distinct(column_name)

And it is sufficient

Recommended Posts

Distinct with pymongo
mongodb access with pymongo
Specify hint with pymongo
Regular expression with pymongo