How to use postgres `array_agg` with typeorm?

后端 未结 0 1873
悲&欢浪女
悲&欢浪女 2021-01-26 03:17

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题