인프런 커뮤니티 질문&답변
답변 1
1
김시훈 (도도소프트)
지식공유자
ssdev님 안녕하세요 :)
음 제가 알기로는 없어요. 전 내장하는 문서가 commentSchema랑 조금이라도 다른 경우에는 다음과 같이 그냥 별도로 comment를 정의해줍니다.
comments: [
{
commentId: { type: ObjectId, required: true, ref: "comment" },
content: { type: String, required: true },
},
];





