【发布时间】:2022-01-22 13:00:24
【问题描述】:
我是韩国学生。请理解我糟糕的英语。
我正在尝试与参与者建立聊天室 并且 chatting_room 有已登录用户的参与者。
这是我的代码
await this.Repository
.createQueryBuilder("room")
.leftJoinAndSelect("room.owner", "owner")
.leftJoinAndSelect("room.matching", "matching")
.leftJoinAndSelect("room.participants", "participants")
.where("participants.userId = :userId", { userId: loggedInUser.userId })
.getMany()
chatting_room 中有两个参与者 (ManyToMany) 但结果只显示了一个已登录用户 我想获得所有参与者。 问题是什么 ? 请帮帮我!
【问题讨论】:
标签: javascript typescript typeorm