eugeneware / eugeneware/jsonquery

$elemMatch not matching

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49
Forks
4
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.