Open Cortys opened 10 years ago
I just created a pull request, that adds this feature.
I'll push your issue top, need it too.
Looks like this was implemented by @louischatriot in nedb@1.8.0
: https://github.com/louischatriot/nedb/commit/0eeca73bb0e313e0d80dafa510a25e6655b0041c
I think adding support for nested projections, the way MongoDB does (e.g.
{ "foo.bar":1, baz:1, _id:0 }
) would be really useful. As far as I could tell from looking at the code, this should be fairly easy to implement.This underscore mixin could be used. I haven't tested it though...