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

Adding a comment breaks the filter #273

Closed
ymost opened this issue Oct 25, 2016 · 1 comment
Closed

Adding a comment breaks the filter #273

ymost opened this issue Oct 25, 2016 · 1 comment

Comments

@ymost
Copy link
Contributor

ymost commented Oct 25, 2016

The following code runs fine in pymongo and returns the desired document:

col.insert_one({'f': 'v'})
col.find_one({'f': 'v', '$comment': 'hello'})

But in mongomock it returns nothing, whereas if the comment is omitted it works as desired.

DeoLeung pushed a commit to MetrodataTeam/mongomock that referenced this issue Mar 27, 2017
zachmullen pushed a commit to zachmullen/mongomock that referenced this issue Jan 15, 2018
@pcorpet
Copy link
Member

pcorpet commented Sep 2, 2018

Fixed by @DeoLeung in 9970d11 since v3.9

@pcorpet pcorpet closed this as completed Sep 2, 2018
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

2 participants