title: MongoDB not equal to
body: <p>I'm trying to display a query in MongoDB where a text field is not '' (blank)</p>
  
  <pre><code>{ 'name' : { $not : '' }}
  </code></pre>
  
  <p>However I get the error <code>invalid use of $not</code></p>
  
  <p>I've looked over the documentation but the examples they use are for complicated cases (with regexp and <code>$not</code> negating another operator).</p>
  
  <p>How would I do the simple thing I'm trying to do?</p>