I\'m learning the mean stack and when I try to start the server using
npm start
I get an exception saying that:
schema has
My problem was sort out using the below
adminModel.findById(req.params.id).populate({ path: "users", model: userModel //User collection name })