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

Query of Field in an Array of Documents doesn't work... #155

Open
sclark39 opened this issue Sep 28, 2017 · 0 comments
Open

Query of Field in an Array of Documents doesn't work... #155

sclark39 opened this issue Sep 28, 2017 · 0 comments

Comments

@sclark39
Copy link

sclark39 commented Sep 28, 2017

This test fails:

// 1
db.users.find( { 'info.follows_viewer': true } )
// 2
db.users.find( { 'info.0.follows_viewer': true } )

If global option searchInArray option is true, the first works and the second doesn't.
If the global option searchInArray is false, the second works, and the first doesn't.

According to
https://docs.mongodb.com/manual/tutorial/query-array-of-documents/
I believe both of these should be valid and operational.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant