Currently, my Mongo db schema has a model called namecards. And inside the namescards, there are documents called profile(object), links(array of objects), and so on...
namecards: {
profile:{
address:{...},
phoneNumber:{...},
...
},
links:[{...}]
}
By the way, I want to push only a few documents of the namecards profile and links in the array of objects called blocks.
Update Expected Schema
namecards:{
blocks:[
{
address:{...},
links:[],
and new added columns , ...
},
{...}
]
}
The question here is,
1. Should I delete the profile and link documents of the namecards as soon as I don't need them?
2. If you don't delete it, how is the best way to define a schema?
i tried just add and added... but it didn't wise solution....