I am having an issue in TypeScript when using order by this way: .orderBy([{ column: 'isConfigured', order: 'asc' }, { column: orderBy, order: ascDesc }]); citing:
Argument of type '{ column: string; order: string; }[]' is not assignable to parameter of type 'ColumnRef'.
Type '{ column: string; order: string; }[]' is not assignable to type 'string'.ts(2345)
I am having an issue in TypeScript when using order by this way:
.orderBy([{ column: 'isConfigured', order: 'asc' }, { column: orderBy, order: ascDesc }]);
citing:The Knex.js documentation says this should be possible. Am I missing something?
Thanks!