You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
It is not very clear to me how should I use this library with discriminators.
There is a User model in my codebase and a BusinessUser, which is a discriminator based on User model.
After applying the plugin to userSchema, User model is encrypted properly. However, the outcome of saving BusinessUser is following: original fields from userSchema are encoded, however businessUserSchema fields are not.
This behavior is understandable, as plugin is applied to userSchema and has no knowledge of businessUserSchema fields, however I believe that there is a way I can make this library work with discriminators.
The text was updated successfully, but these errors were encountered:
Discriminators are not something that this library has explicit support for. If there's a fairly simple change that would add this support, I'd be happy to review a tested PR!
Hello!
It is not very clear to me how should I use this library with discriminators.
There is a User model in my codebase and a BusinessUser, which is a discriminator based on User model.
After applying the plugin to userSchema, User model is encrypted properly. However, the outcome of saving BusinessUser is following: original fields from userSchema are encoded, however businessUserSchema fields are not.
This behavior is understandable, as plugin is applied to userSchema and has no knowledge of businessUserSchema fields, however I believe that there is a way I can make this library work with discriminators.
The text was updated successfully, but these errors were encountered: