Closed dortamiguel closed 7 years ago
Please provide with a reproduction.
I'm using this framework that generates api rest.
When using the post method mongoose called the code inside the schema.pre.('save', function(){}) but with method post save is not called, instead it calls update so the slug was not being generated.
So I solved this issue making this plugin https://github.com/ellipticaldoor/slugify-mongoose
When I set the onHook to update I get the following error: