Get id of each Element in nested Array in MongoDB

I have this document structure:

Place { id : 0, name : "ewfdsf", 
   avaragePrice : 1900, placeType : 1, 
  rating : 8, 
Events : [ 
{ id:0, description : vbretet },
{ id:1,description :bvnvber},
{ id:2, description :bvrtertfdg} 
  ] 
}

How can i get id of each Element in Events Array? I need only ids, not all document


Ответы (0 шт):