Mongo DB $or query returns error, not working as expected. #712

Closed
mariuskubilius opened this Issue Dec 6, 2012 · 1 comment

Comments

Projects
None yet
1 participant

Ok I was trying to do $or query, but it just returns following errors:
Here is the info I managed to gather: https://gist.github.com/4228951.
I added test case which replicated the issue. In mongoDB docs, it says that it can be used as this, or with additional fields, none are working.

Either it was me tired, but the correct syntax for $or query is the following, hopefully I did not left out any syntax errors in current gist: https://gist.github.com/4229105

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