logo

Crowdly

Browser

Додати до Chrome

Following is the structure of the restaurant collection: { "address": { ...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Following is the structure of the restaurant collection:

{

"address": {

"building": "1007",

"coord": [

144.946457, -37.840935

],

"street": "Monash University Bakery",

"zipcode": "

3800

"

},

"suburb": "Clayton",

"cuisine": "Bakery",

"grades": [

{ "date": { "$date": 1393804800000 }, "grade": "A", "score": 2 },

{ "date": { "$date": 1378857600000 }, "grade": "A", "score": 6 },

{ "date": { "$date": 1358985600000 }, "grade": "A", "score": 10 },

{ "date": { "$date": 1322006400000 }, "grade": "A", "score": 9 },

{ "date": { "$date": 1299715200000 }, "grade": "B", "score": 14 }

],

"name": "Monash Bakery Shop",

"_id": "317455"

}

Write a MongoDB query to display the fields -- 'name', 'suburb' and 'zipcode', but exclude the field '_id' for all the documents in the collection.

100%
0%
0%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на learning.monash.edu?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome