I am using pymongo and want to have distinct values for a field such that I can also pass other query parameters. For example, I have entries like:
{ id = \"m
Actually there is a filter parameter you can pass in distinct method as mentioned in the pymongo Doc,
Pymongo Distinct
like this
distinct_tags = db.mycoll.distinct("tags",{"category": "movie"})