title: mongo db check if element of array is in string (OR Logic)
body: <p>hi i want to look if any of these names are in the database.
  It should return the element when Julia OR Robert OR Max are saved in name. I am new in using MongoDB.
  How can i do it?</p>
  
  <p><strong>Database:</strong></p>
  
  <pre><code>[{name: "Julia"}, 
   {name:"someoneelse"}, 
   {name:"Max"}}]
  </code></pre>
  
  <p><strong>Result should be:</strong></p>
  
  <pre><code>[{name: "Julia"}, 
    {name:"Max"}}]
  </code></pre>
  
  <p>This does not work.</p>
  
  <pre><code>var names = ["Julia","Robert","Max"]
  db.collections("names").find({
      name: names
  }).toArray(function(err,result){
    console.log(result)
  })
  </code></pre>