I have created/enabled afterSave hook in my database collection. I added only console.log to see if the function is being called or not. But the hooks are not calling at all.
I didnt do any imports in data.js and I set the mode to “write-only” in the form page dataset