0% found this document useful (0 votes)
29 views3 pages

TP Mongo

Uploaded by

Hime Aoi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views3 pages

TP Mongo

Uploaded by

Hime Aoi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

db.RESTAURANTS.

insertMany({
"adresse": {
"bâtiment": "1234",
"coord": [ -73.91234, 40.789012 ],
"rue": "rue de l'Example",
"code postal": "12345"
},
"arrondissement": "Manhattan",
"cuisine": "Cuisine Internationale",
"notes": [
{ "date": new Date("2015-05-20"), "grade": "A", "score": 8 },
{ "date": new Date("2014-10-10"), "grade": "B", "score": 12 },
{ "date": new Date("2013-12-05"), "grade": "A", "score": 9 },
{ "date": new Date("2012-09-15"), "grade": "A", "score": 11 },
{ "date": new Date("2011-06-30"), "grade": "B", "score": 15 }
],
"name": "International Fusion",
"restaurant_id": "12345678",
"user": {
"username": "User123",
"email": "[email protected]",
"password": "Password456"
}
}
{
"adresse": {
"bâtiment": "5678",
"coord": [ -73.850123, 40.700987 ],
"rue": "avenue de l'Échantillon",
"code postal": "54321"
},
"arrondissement": "Brooklyn",
"cuisine": "Pizzeria",
"notes": [
{ "date": new Date("2016-08-12"), "grade": "A", "score": 7 },
{ "date": new Date("2015-04-25"), "grade": "B", "score": 13 },
{ "date": new Date("2014-01-15"), "grade": "A", "score": 10 },
{ "date": new Date("2012-10-05"), "grade": "A", "score": 12 },
{ "date": new Date("2011-07-20"), "grade": "B", "score": 14 }
],
"name": "Brooklyn Pizza",
"restaurant_id": "87654321",
"user": {
"username": "PizzaLover",
"email": "[email protected]",
"password": "Cheese123"
}
}
{
"adresse": {
"bâtiment": "4321",
"coord": [ -73.950987, 40.732456 ],
"rue": "rue de la Gourmet",
"code postal": "98765"
},
"arrondissement": "Queens",
"cuisine": "Sushi",
"notes": [
{ "date": new Date("2017-11-08"), "grade": "A", "score": 9 },
{ "date": new Date("2016-06-20"), "grade": "B", "score": 11 },
{ "date": new Date("2015-02-12"), "grade": "A", "score": 8 },
{ "date": new Date("2013-10-30"), "grade": "A", "score": 10 },
{ "date": new Date("2012-04-15"), "grade": "B", "score": 13 }
],
"name": "Sushi Delight",
"restaurant_id": "34567890",
"user": {
"username": "SushiFan",
"email": "[email protected]",
"password": "Roll123"
}
}
{
"adresse": {
"bâtiment": "8765",
"coord": [ -73.890123, 40.758901 ],
"rue": "avenue des Saveurs",
"code postal": "56789"
},
"arrondissement": "Manhattan",
"cuisine": "Steakhouse",
"notes": [
{ "date": new Date("2018-09-05"), "grade": "A", "score": 10 },
{ "date": new Date("2017-04-18"), "grade": "B", "score": 12 },
{ "date": new Date("2016-01-30"), "grade": "A", "score": 9 },
{ "date": new Date("2014-11-10"), "grade": "A", "score": 11 },
{ "date": new Date("2013-06-25"), "grade": "B", "score": 14 }
],
"name": "Prime Cuts Steakhouse",
"restaurant_id": "09876543",
"user": {
"username": "SteakMaster",
"email": "[email protected]",
"password": "Grill456"
}
}
{
"adresse": {
"bâtiment": "2468",
"coord": [ -73.980456, 40.718901 ],
"rue": "rue de l'Exotique",
"code postal": "34567"
},
"arrondissement": "Queens",
"cuisine": "Thai",
"notes": [
{ "date": new Date("2019-12-15"), "grade": "A", "score": 8 },
{ "date": new Date("2018-07-28"), "grade": "B", "score": 13 },
{ "date": new Date("2017-03-10"), "grade": "A", "score": 10 },
{ "date": new Date("2015-11-02"), "grade": "A", "score": 12 },
{ "date": new Date("2014-05-18"), "grade": "B", "score": 15 }
],
"name": "Spice of Thailand",
"restaurant_id": "67890543",
"user": {
"username": "ThaiTaste",
"email": "[email protected]",
"password": "Spicy123"
}
}
{
"adresse": {
"bâtiment": "1357",
"coord": [ -73.830901, 40.674567 ],
"rue": "avenue du Délice",
"code postal": "12345"
},
"arrondissement": "Bronx",
"cuisine": "Mexican",
"notes": [
{ "date": new Date("2020-06-08"), "grade": "A", "score": 9 },
{ "date": new Date("2019-01-20"), "grade": "B", "score": 11 },
{ "date": new Date("2018-05-02"), "grade": "A", "score": 8 },
{ "date": new Date("2016-12-15"), "grade": "A", "score": 10 },
{ "date": new Date("2015-07-30"), "grade": "B", "score": 14 }
],
"name": "Mexican Fiesta",
"restaurant_id": "54321098",
"user": {
"username": "MexiCuisine",
"email": "[email protected]",
"password": "Taco456"
}
}
{
"adresse": {
"bâtiment": "7890",
"coord": [ -73.950123, 40.810987 ],
"rue": "rue du Gourmet",
"code postal": "23456"
},
"arrondissement": "Brooklyn",
"cuisine": "Italian",
"notes": [
{ "date": new Date("2021-03-25"), "grade": "A", "score": 10 },
{ "date": new Date("2020-09-08"), "grade": "B", "score": 12 },
{ "date": new Date("2019-02-20"), "grade": "A", "score": 9 },
{ "date": new Date("2017-10-10"), "grade": "A", "score": 11 },
{ "date": new Date("2016-05-25"), "grade": "B", "score": 13 }
],
"name": "Little Italy Trattoria",
"restaurant_id": "10987654",
"user": {
"username": "ItalianFoodie",
"email": "[email protected]",
"password": "Pasta123"
}
}
)

You might also like