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
Refer the same name that you refer in model name while creating new model.
For example: if I have mongoose model like:
var Post = mongoose.model("post",postSchema);
Then I have to refer to posts collection via writing ref:"post".
ref:"post"