mongoosejs/mquery

Feature: Add ability to run transform/map function on every function that returns a doc/docs.

j opened this issue · 2 comments

j commented

I'd like to use mquery, but want to transform every document to a class without having to do it manually every time (such as https://github.com/j/type-mongo-mapper).

This feature is only available on mongodb@3.1.0 and up.
mquery use mongodb@2.2 so it's not working. Try to upgrade 3.1.0 by yourself and see if it works.

j commented

@Fonger I believe they removed the map functionality that I implemented in the driver already since they want to put it on the (de)serialization BSON layer. I'll close this for now though.