Skip to content

postgrelize / GroupOption

Type Alias: GroupOption ​

GroupOption = string | Fn | Col | (string | Fn | Col)[]

Defined in: src/model/v6-aliases.ts:80

Value of the group option (Sequelize v6 GroupOption): attribute names, col() or fn() expressions.

Example ​

ts
const group: GroupOption = ['authorId', fn('date_trunc', 'day', col('createdAt'))];

Released under the MIT License.