Hỏi & Đáp
populate 문제(cats schema 오류) 해결법
도움이 되었습니다 👍 👍 👍
- Lượt thích
- 14
- Số bình luận
- 6
- Lượt xem
- 1070
Hỏi & Đáp
도움이 되었습니다 👍 👍 👍
Hỏi & Đáp
https://mongoosejs.com/docs/tutorials/virtuals.html 감사합니다~
Hỏi & Đáp
저는 이렇게 하니 되네요 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 ;