title: What's the fastest way to check for the existence of a mongodb doc?
body: <p>What's the fastest way to check for the existence of a mongodb doc?</p>
  
  <p>Should I just use find and if it returns nothing?</p>
  
  <p>EDIT: </p>
  
  <pre><code>collection.findOne {#attribute}, (err, doc) -&gt;
  
      if err then console.log err
  
      if interaction
          #exists
      else
          #does not
  </code></pre>