如何在typeorm中按顺序使用运算符

问题描述

我想将该条件应用于特定条件。

喜欢:

import { Like } from 'typeorm'

...

const [malls,count] = await Mall.findAndCount({
    take,skip,where,relations: ['user','category'],order: {
      updatedAt: 'DESC',createdAt: 'DESC',expiry: 'ASC',name: [ Like(`%${query}%`),'DESC' ],// specific condition
    }
})

我想按如上所述按desc对名称值进行排序。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)