title: Meteor: collection find
body: <p>what is the best way to find collections in Meteor by ids?</p>
  
  <p>I've tried this method:</p>
  
  <pre><code>UserCollection.findCollectionsByIds = function (ids) {
      var collections = UserCollection.find({user: Meteor.userId(), _id: { $in: [ids]}});
      return collections;
  }
  </code></pre>
  
  <p>where:
      ids = ['asgdajksdqa', 'ashudkjhaskc'] //an array of Object id</p>
  
  <p>Now if I'm going to make a query like:</p>
  
  <pre><code>firstId = isd.pop();
  var collections = UserCollection.find({_id: firstId });
  </code></pre>
  
  <p>it work correctly, so really I didn't understand what is wrong.</p>
  
  <p>Thank you</p>