-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support $project exclusion of nested fields. #121
Comments
bwaldvogel
added a commit
that referenced
this issue
Mar 13, 2020
I’ve reworked the |
The change is part of |
HI thanks - finally got back on this. I see it works for aggregations, but not for a vanilla project. I'll raise a separate ticket. (Also since I'm here, is it worth testing this on arrays:
and I do: I should get back:
) |
bwaldvogel
added a commit
that referenced
this issue
May 2, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I have a document like so:
and I do:
$project("foo.bas":0)
I should get back:
This isn't working because
Projection.projectDoucment()
in theif(onlyExclusions(...)){...}
clause takes a simplistic view on how to remove fields.There's plenty of code in the same class for handling nested fields - maybe it can be changed to work with exclusions as well as inclusions?
The text was updated successfully, but these errors were encountered: