A looooong time ago I wrote a document class and named it MongoDict
because I wanted to add a few helper functions to the standard dict
class. It worked out really well and is now published as
https://github.com/whardier/indicted (needs love but works well)
Since it's so insanely helpful when dealing with sub-documents, by
indexing sub-document fields for a fast lookup, I'm curious if there
is already any momentum to create helpful document classes for python,
ruby, node, etc..
I understand it may be rather presumptuous of 10gen to suggest a
specific method to access generic structured objects. However it may
also spread some interesting schema design ideas that would be hard to
widely express without immediate functionality.
Not to mention add some fun support for document encoding (.to_json(), ...)
Just food for thought.
- Shane