title: How should I do an aggregate?
body: <p>I have an array with products(objects) inside. It looks like: </p>
  
  <pre><code>[
   {_id: 123, name:'first', category:'Vape', property:[
     {key:'brand', values:'Eleaf'},
     {key:'mechmode', values:'some'},
     {key:'color', values:['red', 'blue']},
     {key:'batrtype', values:'some2'},
   ]},
  {_id: 1234, name:'second', category:'Vape1', property:[
     {key:'brand', values:'Eleaf1'},
     {key:'mechmode', values:'some'},
     {key:'color', values:['black']},
     {key:'batrtype', values:'some2'}
   ]},
  {_id: 12345, name:'third', category:'Vape3', property:[
     {key:'brand', values:'Eleaf3'},
     {key:'mechmode', values:'some'},
     {key:'color', values:['green', 'yellow']},
     {key:'batrtype', values:'some2'}
   ]},
  {_id: 123456, name:'fourth', category:'Vape', property:[
     {key:'brand', values:'Eleaf'},
     {key:'mechmode', values:'some'},
     {key:'color', values:['red', 'green']},
     {key:'batrtype', values:'some2'}
   ]}
  ]
  </code></pre>
  
  <p>Request from client</p>
  
  <pre><code>{category:'Vape', body:{brand:'Eleaf', color:'red'}}
  </code></pre>
  
  <p>How should I do an aggregate in mongo to get products which have brand = 'Eleaf'
  and color = red in according to request?</p>
  
  <p>Can somebody help please?  </p>