NovuN
Novu2y ago
guywal

Template handlebars helper - groupBy digest aggregation

Hi, is there currently a way to "groupBy" the values of a field on events in a digest and aggregate them? For example, if I have a digest with 2 events [{ count: 2 }, { count: 3 }] and I want to create <h1>5</h1> element in my template (sum the field count).

Thanks
Was this page helpful?