title: Why does this query work?
body: <p>sails.js uses waterline and there is a nice <a href="https://github.com/balderdashy/waterline#query-methods" rel="nofollow">documentation</a>.</p>
  
  <pre><code>User.findOne()
  .where({ id: 2 })
  .then(function(user){
      var comments = Comment.find({userId: user.id}).then(function(comments){
          return comments;
  </code></pre>
  
  <p>if i leave out <code>"id: 2"</code> and use just find() instead of <code>findOne()</code> the query still works, but why? <code>find()</code> should return a list so I shouldn't be able to just say user.id in the subquery</p>
  
  <p>how can I access <code>Comment.find({userId: user.id})</code> if I didn't receive one single record but a list of users?</p>