title: what causing meteor array of non-Cursor (DDP in meteor)
body: <p>just a quick question.</p>
  
  <p>i have an example of publication using aggregation.</p>
  
  <pre><code>Meteor.publish('tags', function(tag){
      var sub = this;
      var pipeline = [
          {$project: {tags:1, author: 1, title:1, permalink:1 }},
          {$unwind:"$tags"},
          {$match: {"tags": tag}}];
      var results = Posts.aggregate(pipeline);
      var arrayLength = results.length;
      for(var i=0; i &lt; arrayLength; i++){
            var tags = results[i];
            sub.added('posts', Math.random(), tags);
      }
      sub.ready();
  });
  </code></pre>
  
  <p>why do i need to have an additional loop to store a data in the collection posts.</p>
  
  <pre><code>for(var i=0; i &lt; arrayLength; i++){
     var tags = results[i];
     sub.added('posts', Math.random(), tags);
  }
  sub.ready();
  </code></pre>
  
  <p>if i return the result without including the loop for sub.added i will get the array of non-Cursor error on my client namespace.</p>