node-mongoose-fixtures icon indicating copy to clipboard operation
node-mongoose-fixtures copied to clipboard

insertMany does not invoke 'save' and pre 'save' middleware

Open minsuk-kang opened this issue 3 years ago • 0 comments

Hello,

I am facing an issue where model.pre('save') middleware is not being invoked because it uses insertMany. This was changed from create to insertMany in this PR.

Can we switch it back to calling create but in order of array?

minsuk-kang avatar Apr 26 '21 23:04 minsuk-kang