Skip to content

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

Open
doguhanokumus wants to merge 1 commit into
wheresvic:masterfrom
doguhanokumus:select-for-find-and-findone
Open

.select workaround based on field names for find and findOne #63
doguhanokumus wants to merge 1 commit into
wheresvic:masterfrom
doguhanokumus:select-for-find-and-findone

Conversation

@doguhanokumus
Copy link
Copy Markdown
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
Copy Markdown
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