Skip to content

$elemMatch not matching #7

Description

@nickythorne

Hi Eugene,

Thanks for the module!

I have a query regarding $elemMatch condition. I have an input JSON object represented something like:

{
    users : [
        {
            name : 'john doe'
        }
    ]
}

My JSON query looks like:

{
    users : {
        $elemMatch : {
            name : 'john doe'
        }
    }
}

However, this isn't matching the input object at present, even though is a valid matching MongoDB query. Any ideas?

Thanks.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions