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

Add more query middleware #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jobachhu
Copy link

@jobachhu jobachhu commented Jun 7, 2021

We ran into an issue running a countDocuments query when using convergent encryption. The query was not encrypted and hence it always returned 0 as it searched for the raw value.

This PR fixes that by adding the query middleware for countDocuments and deleteMany, so that the queries in those methods are also altered.

Note: depends on #6

Johannes Bachhuber added 2 commits June 7, 2021 11:53
builds were failing because version 5.0.7 is not published on NPM anymore
added countDocuments and deleteMany
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

Successfully merging this pull request may close these issues.

1 participant