Closed dodgertodd closed 7 years ago
The descriminator thing from Mongoose seems pretty cool. The way you've got it set up @kingbrendann , does that descriminatorKey: type bit take care of adding a field called "type" to the model that will be returned to consumers?
descriminatorKey: type
Yep!
The descriminator thing from Mongoose seems pretty cool. The way you've got it set up @kingbrendann , does that
descriminatorKey: type
bit take care of adding a field called "type" to the model that will be returned to consumers?