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

Fix issue where "query" field conflicts with $query operator #3

Open
ghost opened this issue Aug 26, 2016 · 0 comments
Open

Fix issue where "query" field conflicts with $query operator #3

ghost opened this issue Aug 26, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 26, 2016

I was experiencing an issue similar to that reported here.

I was able to fix this problem by modifying line 26. I've got the change in branch I can push to the repo, or just make this change:

#Current (not working, at least for  mongo shell 2.6.12)
var size = queries.push({query:profileDoc.query, count:1, index:""});

#Change (works with mongo shell 2.6.12)
var size = queries.push({$query: {query:profileDoc.query, count:1, index:""}});
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

0 participants