Skip to content

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

@cmoesel

Description

@cmoesel

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions