Postgres Aggregate Into Array One Dimensional To Array Js W3schools