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
Yes the hook used is a pre-save hook, so the counter is incremented before the document is actually saved. This is safer than a post hook and better mimic the SQL behavior. At the moment there's no option to use a post hook but you can use a workaround. You can disable hooks completely and run manual increment by yourself. See the disable_hooks options and the manual increment documentation
Dear Experts,
I found the count is increased no matter if the creation of the document success or not. E.g.
Any idea on this? Thank you so much!
The text was updated successfully, but these errors were encountered: