5. Create two collections in database PopularRestaurants as following and populate the collections with two json files
Fantastic news! We've Found the answer you've been seeking!
Question:
5. Create two collections in database PopularRestaurants as following and populate the collections with two json files (one for Restaurants, one for Users) using mongoimport function. Each json files should have at least 10 documents. Each restaurant can receive comments from one or more than one user. Mongodb
Restaurants
Restaurants
{"cuisine": String type,
"comments": array type,
"name": String,
"restaurant_id": String,
"address":{
"buildingNo": String,
"coord": [longitude, latitude],
"street": String,
"zipcode": String
}
“grade”: number
}
Users
{
“name”: String,
“user_id”: Integer,
“City”: String,
“State”: String
}
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1285196145
11th edition
Authors: Carlos Coronel, Steven Morris
Posted Date: