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
Mon, Dec 23, 13:11 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556316
Default Alt Text
aggregated-field.js (479 B)

Event Timeline