Pre Function is not called (Using it to auto increment a variable but it's not working)

后端 未结 0 483
余生分开走
余生分开走 2020-12-19 09:01

This is my pre function declaration

locationSchema.pre(\'save\', function(next) {
 console.log(" HELLO ") //not printing
 var doc = this;
 Counter.f         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题