title: How to do greater than syntax in a Mongoose.js query
body: <p>How do I get a 'greater than' syntax to work for this Mongoose query?</p>
  
  <pre><code>var where = {};
  where._id = req.wine.id;
  where.sameAs = undefined;
  where.scoreTotal &gt; 0; //THIS NEEDS TO SET TO DO GREATER THAN 0
  where.mode = 'group';
  where.deleted = false;
  Wine.find(where, callback).populate('user');
  </code></pre>
  
  <p>It keeps crashing my node server.</p>
  
  <p>I'd like to keep this where object syntax instead of doing the inline where object syntax for readability sake. Could I do something like:</p>
  
  <pre><code>where.scoreTotal = $gt(0);
  </code></pre>