In NestJS I am trying to get a list of categories as an array using TypeORM.
In PostgreSQL I can just do:
\'SELECT array_agg(name) AS categories FROM categ