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