Kindly I want to design a new db using Mongodb with features like :
{[
name:company1,
password:123,
type:company,
.
.
.
categories{
Mobile device,
Computer devices
],
[
name:ihab salem,
password:123,
type:user,
.
.
.
intersted_category{
Home Appliance,
Mobile Devices
}]
.
.
.
}
so kindly in this case should i use Embed Colection as i described above, or should i seperate them into many collections " collection for Categories, another collection for users and another one for companies...etc".?