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

.select workaround based on field names for find and findOne #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doguhanokumus
Copy link
Contributor

Upon our needs for our business, I've made a workaround on .select with a pre-hook.
This hook automatically adds __enc_key and __enc_key_d for relevant fieldsToEncrypt.

Note: only works on top-level fields at the moment.

Doguhan

@wheresvic
Copy link
Owner

Hi @doguhanokumus

Really sorry for the delay here - it seems that I am missing github notifications for this project.

Anyways, I am not sure I quite understand the changes here. Could you explain to me what you are trying to achieve?

Also, we would need a few tests for this feature to be merged in :)

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

Successfully merging this pull request may close these issues.

2 participants