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

$elemMatch in $elemMatch find nothing #52

Closed
rewiaca opened this issue Jul 1, 2021 · 1 comment · Fixed by #53
Closed

$elemMatch in $elemMatch find nothing #52

rewiaca opened this issue Jul 1, 2021 · 1 comment · Fixed by #53
Labels
bug Something isn't working

Comments

@rewiaca
Copy link

rewiaca commented Jul 1, 2021

Hi @davidlatwe,
Just discovered that monty(montydb-2.3.10) can't handle query like:

x = col.find({"mapping": {'$elemMatch': {'$elemMatch': {'$in': [https://accounts.google.com/o/oauth2/aut']}}}})

for a array in array elements:

"mapping": [ ["https://accounts.google.com/o/oauth2/auth", "client_id", "redirect_uri", "scope", "response_type"] ]

Just doesn't find anything, unlike pymongo does

@rewiaca rewiaca changed the title $elemMatch in elemMatch $elemMatch in $elemMatch find nothing Jul 1, 2021
@davidlatwe davidlatwe added the bug Something isn't working label Jul 1, 2021
davidlatwe added a commit that referenced this issue Jul 2, 2021
davidlatwe added a commit that referenced this issue Jul 2, 2021
@davidlatwe
Copy link
Owner

Hey @rewiaca , thanks for reporting. It's fixed and 2.3.11 is out. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants