Even if your driver does not implement separate, you can implement it yourself. In JavaScript (sorry, I do not know Erlang, but it should translate quite straightforwardly), it can say:
result = db.$cmd.findOne({"distinct" : "collection_name", "key" : "tags"})
So you: findOne in the "$ cmd" collection of any database that you use. Give it the name of the collection and the key that you want to use separately.
If you ever need a command whose driver does not provide an assistant, you can see http://www.mongodb.org/display/DOCS/List+of+Database+Commands for a somewhat complete list of database commands.
kristina
source share