Documentation missing for Aggregate#out

5 views
Skip to first unread message

Michael Luder-Rosefield

unread,
May 3, 2017, 11:36:43 AM5/3/17
to Mongoose Node.JS ODM
Looking at the sourcecode, line 251, the $out aggregate operator is added to Aggregate.prototype:

'group match skip limit out'.split(' ').forEach(function($operator) {
   
Aggregate.prototype[$operator] = function(arg) {
     
var op = {};
     op
['$' + $operator] = arg;
     
return this.append(op);
   
};
 
});



There is no mention of this in the docs, however.

Reply all
Reply to author
Forward
0 new messages