This really should be done in the query using group by and/or sum so if you can post your query here it might be more helpful for me to edit it and determine how it should be written
All this said, it looks like I could either 1) write a transformer for the original JS query so that the results are grouped by created_at or 2) create a 'Query JSON with SQL' resource to modify the result of the original JS query.
Hopefully this is right! I'm a bit of a Retool noob.
@ScottR it looks like created_at isn't getting retrieved properly, so like_count doesn't aggregate correctly either. i assume it has something to do with how i use index i.
@jordanp Hard to say what it could be with not being able to see your code.... I would type out one element at a time where your seeing that error and see what Retool suggests as you add a . after each element... it may help you get to the correct structure you need within the SUM....