With this option you would store into the entity itself the association information ?
Something like:
City:
{_id: "ParisID", name:"Paris"}
{_id: "StrasbourgID", name:"Strasbourg"}
Country
{
_id: ObjectID("123151231313123"),
name:"France",
cities:{["ParisID", "StrasbourgID"]}
}
With this option you would store into the entity itself the association information ?
Something like:
City:
{_id: "ParisID", name:"Paris"}
{_id: "StrasbourgID", name:"Strasbourg"}
Country
{
_id: ObjectID("123151231313123"),
name:"France",
cities:{["ParisID", "StrasbourgID"]}
}