title: Query Mongoose Documents Based on Object Properties
body: <p>I have the following Mongoose Schema:</p>
  
  <pre><code>var UserSchema = new Schema({
    name: String,
    age: Number,
    ...
    tags: [{
      text: String,
      ...
    }]
  });
  </code></pre>
  
  <p>and the following array:</p>
  
  <pre><code>var tagTexts = ['tall', 'small', 'green', 'blue'];
  </code></pre>
  
  <p>I would like to retrieve all user documents that contain at least one tag with a text property found within tagTexts.</p>
  
  <p>For example, if I had the following users and tagTexts array</p>
  
  <pre><code>[{
    name: 'Bob',
    age: 17,
    ...
    tags: [{
      text: 'small',
      ...
    }]
  }, {
    name: 'Bill',
    age: 29,
    ...
    tags: [{
      text: 'dandelion',
      ...
    }, {
      text: 'oak',
      ...
    }]
  }]
  
  var tagTexts = ['tall', 'small', 'green', 'blue'];
  </code></pre>
  
  <p>then Bob would be retrieved, but not Bill.</p>