在老师你的文档中
关于代码
async findUserLogs(id: number) {
const user = await this.findOne(id);
return this.logsRepository.find({
where: {
user: user.logs,
},
relations: {
user: true,
},
});
}
这么怎么做到联合查询之后user的序列化呢?