Saturday, 14 October 2017

model.schema.post not working

model.schema.post not working

if you are facing this issue.

make sure you do before:

mongoose.model("xxx", xxxSchema);


your code may work before, but after 4.xx, you code will stop working.

which means once monoose.model you r model you cannot change it,

No comments:

Post a comment