title: MongoDB .remove() matching multiple conditions
body: <p>I have a collection called messageLogs, and I am able to delete those documents which contain an empty array in messageLog field via the following:</p>
  
  <pre><code>messageLogs.remove({ 
      messageLog: { 
        $eq: {} 
      } 
    });
  </code></pre>
  
  <p>My problem is that I need to do an AND condition to only remove those documents which also match chatId</p>
  
  <pre><code>chatId: {
    $eq: chatId
  }
  </code></pre>
  
  <p>How do I perform this kind of operation with .remove()?</p>