N
Novu14mo 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
2 Replies
guywal
guywalOP13mo ago
How so? I don’t see a way to sum the counts

Did you find this page helpful?