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
Sat, Oct 11, 10:01 (16 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
962625
Default Alt Text
aggregated-field.js (479 B)

Event Timeline