Alex
Alex
It seems this won't be supported bacause in this case subdocuments (embedded documents) are not model instances.
I've added support for embedded in 1.2.3, check it.
There is no need for this, glad to be useful ;)
Yes I've seen that but din't find what is wrong there and how can be fixed yet .
Well if you will be capable of fixing will be great, I will check this a little bit later) Yous this https://github.com/whitecolor/cycle-mongoose better)
test
test
> I wonder if it is possible to use this inside of schema.pre('find', callback) callbacks I don't know, does it work? =)
Don't know, I myself tend not to use mongoose itself anymore in favor of mongo native driver.
If you can identify the problem please send a PR.