Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995685
aggregated-field.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
479 B
Referenced Files
None
Subscribers
None
aggregated-field.js
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 13:11 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556316
Default Alt Text
aggregated-field.js (479 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment