강의

멘토링

커뮤니티

Inflearn Community Q&A

plane90's profile image
plane90

asked

mongoDB from basics to practice (feat. Node.js)

Embed Comments on Blog

user 내장 시 ref 필드 필요성

Written on

·

233

·

Edited

0

안녕하세요 !

유익한 강의 감사합니다.

 

Blog.js에서 BlogSchema를 보면,
user를 내장하였는데,
_id에 ref 필드가 그대로 있더라구요.

사실 populate 하지 않을 꺼면 ref필드는 삭제해도 되지 않을까요?

만약 내장하려는 문서에 ref가 필요한 케이스가 있다면 어떤 게 있을까요?

javascriptnode.jsawsmongodbrest-apidbms/rdbms데이터-엔지니어링

Answer 1

1

sihoon님의 프로필 이미지
sihoon
Instructor

안쓰시면 빼도 됩니다!

maple V님의 프로필 이미지
maple V
Questioner

감사합니다 !

plane90's profile image
plane90

asked

Ask a question