Page MenuHomeSealhub

aggregated-field.js
No OneTemporary

aggregated-field.js

const Promise = require("bluebird");
const AggregatedField = function(App, field_name, aggregations){
this.app = App;
this.name = field_name;
this.aggregations = aggregations;
};
AggregatedField.prototype.get_aggregation_stages = function(context, item){
const self = this;
return Promise.all(
self.aggregations.map(function(e){
if(e instanceof Function){
return e(context, item);
}else{
return e;
}
})
);
};
module.exports = AggregatedField;

File Metadata

Mime Type
text/plain
Expires
Wed, May 7, 19:45 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
667066
Default Alt Text
aggregated-field.js (472 B)

Event Timeline