Correction exercice 2
db.restaurants.insertOne({
name : "Freshly Burger",
borough: "Brooklyn",
_id : ObjectId(45872563),
cuisine : "Burgers",
address : {
building : '165',
street : 'Farragut Road'
},
grades: [
{
date: ISODate("2021-06-06T00:00:00.000Z"),
grade: 'A++',
score: 18
},
{
date: ISODate("2015-04-03T00:00:00.000Z"),
grade: 'A+',
score: 15
},
],
});
db.restaurants.findOne({name:"Freshly Burger"});
16 June 2025