Skip to content

[Query] Support matching references with $inΒ #1024

@jmikola

Description

@jmikola

The references() and includesReferenceTo() builder methods, which are for ReferenceOne and ReferenceMany, respectively, only support a single document as their argument. We should have helper methods to match against multiple referenced documents (using $in). This is trivial for simple references, as it would simply use $in, but it requires something more complex for DBRef references (see: here).

This issue was prompted by: http://stackoverflow.com/a/28304608/162228

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions