Am 06.05.2016 um 10:07 schrieb can:
How do I distinct on MongoDB query?
I'd have to try it to be sure, but I'd suspect this to work:
coll.find(["query": query, "distinct": Bson(fieldname)])
If it does, I'd add a method to MongoCursor
, so that this would also
work then:
col.find(query).distinct(fieldname)