You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered the afterCreate opiton while looking at the source code. It be great if the afterCreate option was documented in the README. This option is essential when using ex. passport-local-mongoose to set user password by calling setPassword() method before returning the created model.
Also, I noticed afterCreate is only called when using factory.create(), but not when using factory.createMany(). Is this expected behavior?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
I discovered the afterCreate opiton while looking at the source code. It be great if the afterCreate option was documented in the README. This option is essential when using ex. passport-local-mongoose to set user password by calling setPassword() method before returning the created model.
Also, I noticed afterCreate is only called when using factory.create(), but not when using factory.createMany(). Is this expected behavior?
Thanks
The text was updated successfully, but these errors were encountered: