i'm new in NoSQL and i like how it work but i have some difficulties to think NoSQL. i want to do a place referential with multiple layers : - Country - City - Place
It is hard to don't think as a relational database. So what is the NoSQL strategy ? My first approach is to create a table named "place" with this format :
{
placename: String,
placelongitude: Number,
placelatitude: Number,
placeparent: String
}
But i think this is not the best way for NoSQL. i have think about this way :
{
countryname: String,
cities: [{
cityname: String,
places: [{
placeid: Number,
placename: String,
placelongitude: Number,
placelatitude: Number
}],
}]
}
What do you think ? Thanks for help.