mongoosejs / mongoose-lean-getters

Apply getters on lean() documents: https://mongoosejs.com/docs/tutorials/lean.html
Apache License 2.0
11 stars 16 forks source link

feat: apply getters to schemas with discriminator #26

Closed remcorakers closed 1 year ago

remcorakers commented 1 year ago

Summary

When schemas are created using inheritance with a discriminator field, the getters are not applied to the fields that only occur in the discriminator schema.

Examples

See the test should call getters on schemas with discriminator