-
카테고리
-
세부 분야
백엔드
-
해결 여부
해결됨
질문있습니다
22.02.06 14:54 작성 조회수 204
0
const user = await this.usersRepository
.createQueryBuilder('user')
.where('user.email = :email', { email })
.innerJoin('user.Workspaces', 'workspace', 'workspace.url = :url', {
url,
})
.getOne();
해당 코드에서 유저의 email 속성은 unique인데 InnerJoin을 한 이유가 있나요??
답변을 작성해보세요.
답변 1