How to create nested objects from MySQL query?
I have this dummy MySQL data: id date (y/m/d) value 1 2022-1-1 random value 2 2022-2-5 random value 3 2022-3-3 random value 4 2022-4-6 random value 5 2022-5-11 random value 6 2022-6-7 random value 7 2022-7-16 random value 8 2022-8-4…