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

_include and _revinclude not working when included param references array #37

Open
cmoesel opened this issue Feb 1, 2016 · 0 comments

Comments

@cmoesel
Copy link
Contributor

cmoesel commented Feb 1, 2016

If the included param references a field that is an array, then the included results are not returned (for example, _include=Observation:performer). This is because MongoDB's left-join (a.k.a. $lookup) doesn't work with array fields. You need to unwind the arrays and then group them back together again.

See:

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

No branches or pull requests

1 participant