title: How to make an 'OR' condition mongo node
body: <p>Is this how you make an or condition in mongo and node?</p>
  
  <pre><code>var conditions = {
  $or:[
          {
              username: req.body.globalUserName,
              'pendingFriends._id': {$ne: req.user._id.toString()}
          },
          {
              username: req.body.globalUserName,
              'friends._id': {$ne: req.user._id.toString()}
          }
      ]
  }
  </code></pre>