Skip to content
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

allow projection of fields for documents within arrays #14

Closed
hpgrahsl opened this issue Jan 21, 2018 · 1 comment
Closed

allow projection of fields for documents within arrays #14

hpgrahsl opened this issue Jan 21, 2018 · 1 comment
Assignees

Comments

@hpgrahsl
Copy link
Owner

while the current field projection mechanisms allow to project fields anywhere within nested documents it's not possible to project on fields found within documents which are themselves contained in arrays.

should work like the following based on this structure:

{ "array": [ {"k":123,"v":"abc"}, {"k":234,"v":"cde"}, {"k":345,"v":"def"} ] }

  • blacklisting on "array.k"

{ "array": [ {"v":"abc"}, {"v":"cde"}, {"v":"def"} ] }

  • whitelisting on "array.k"

{ "array": [ {"k":123}, {"k":234}, {"k":345} ] }

@hpgrahsl hpgrahsl self-assigned this Jan 21, 2018
@hpgrahsl
Copy link
Owner Author

addressed with PR #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant