如何LIKE在 typeormfind查询中使用第二个?我尝试如下,但不起作用并且总是返回空数组
return await this.conn.getRepository(Article).find({
where: {
body: Like(`%${query}%`),
//title: Like(`%${query}%`), //NOT WORK WITH SECOND
},
order: {
lastUpdate: 'DESC'
},
relations: ['author']
});
谢谢你的帮助!