score:0

router.get("/users", (req, res) => {
User.find()
.populate("posts")
.execPopulate()
.then((users) => {
  res.json({ users });
})
.catch((err) => console.log(err));
});

Related Query

More Query from same tag