mongoose-schema-extend

questionsCategory: Questionsmongoose-schema-extend
vinay asked 2 years ago

how to perform inheritance in mongoose schema like other programming language.
for example
mobile:{
imeNo: String,
modelNo: String
}
samsungJ2 extend mobile{
themes: [{}],
display:string
}