DB/MongoDB
[ MongoDB ] match 사용
라넌.B
2021. 1. 6. 17:12
.populate({path:'study', match: {owner: req.user.id}})
populate 조건에 match 사용해서 조건을 건다.