Allowing use of query in distinct

As the documentation of mongodb shows [1], we can specify a query
when using distinct. So we can perform operations like:

&gt;&gt;&gt; db.users.distinct("country", {"status": "active"})

[1]
http://docs.mongodb.org/manual/reference/method/db.collection.distinct/#db.collection.distinct