Michael Bøcker-Larsen
Michael Bøcker-Larsen
Hi @shkipan the lib needs to be updated for V3. I'm looking for help on this since I'm unable to work on it for the time being.
I was also thinking to follow whatever Mongoose is following.
Good points @AlbertHambardzumyan > This package is always integrated with mongoose and at first glance following whatever Mongoose is following makes sense. However, Node.js v4 eol was in 2018-04-30 and...
This plugin extends the Mongoose API at the model layer, that is after the query has been hydrated into model objects. This is also where transformation functions live which is...
> Is there any benefit from transforming the objects before sending them through the response? Well, when you call toJSON and toObject they are being transformed. Surely there is a...
@niftylettuce it is a recursive intersection between the props on the the original (allowed) and the transformed (hidden + whatever Mongo adds)? So Mongo specific stuff is removed and whatever...
Hi Benjamin, I read through the issue on typegoose and I'm not sure what the conclusion was there. At any rate would you mind creating a failing test for the...
@benjaminb- if both options are valid in Mongoose we should probably support them both. Semantically they different too, except for the case where you are not nesting.
@benjaminb- yes, please try to make a PR. Once the code is there I can try to help out in terms of how it fits in with everything else. >...
Could you create a test case here: https://github.com/mblarsen/mongoose-hidden/blob/master/test/github-issues.js?