--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
https://jira.mongodb.org/browse/SERVER-863?focusedCommentId=94404#comment-94404another compelling use-case is aliasing field names to conform documents to some downstream "interface". for example, i can define a function:
Long increment(DBObject obj){ return ((Long)obj.get("target"))+1; }... and feed it with a query that aliases "mySpecialField" to "target", decoupling the definition of increment() from the definition of the documents i want to process.