Group results within an API

Answered

Hi everyone!

I'm building a journaling app and have a page that allows users to view all their entries. They are currently presented as different items: ie. every entry is separate, even if written on the same day:


How can I structure my API so that they are grouped by date: ie. every entry done on the 02.Jan.2022 is one group, like this:


Here is the function stack I have currently (it decrypts each entry):


And here is the output:


Thanks, any help much appreciated.


(I'm using Draftbit as a FE incase that's important)

2 replies