질문&답변
populate 문제(cats schema 오류) 해결법
도움이 되었습니다 👍 👍 👍
- 좋아요수
- 14
- 댓글수
- 6
- 조회수
- 1082
질문&답변
도움이 되었습니다 👍 👍 👍
질문&답변
https://mongoosejs.com/docs/tutorials/virtuals.html 감사합니다~
질문&답변
저는 이렇게 하니 되네요 const user = await this.userRepository.findOne({ where: { username } }); export interface FindOneOptions { /** * Adds a comment with the supplied string in the generated query. This is * helpful for debugging purposes, such as finding a specific query in the * database server's logs, or for categorization using an APM product. */ comment?: string; /** * Specifies what columns should be retrieved. */ select?: FindOptionsSelect | FindOptionsSelectByString ; /** * Simple condition that should be applied to match entities. */ where?: FindOptionsWhere [] | FindOptionsWhere ;