db icon indicating copy to clipboard operation
db copied to clipboard

Collection.Insert() does not Use Validation Hooks

Open rocco-datalign opened this issue 6 months ago • 0 comments

I just learned that Session.Save() can do nearly all the same things as Collection.Insert(), but this did help me learn that Collection.Insert() does not use the following validation hooks:

BeforeCreate(db.Session) error AfterCreate(db.Session) error BeforeUpdate(db.Session) error AfterUpdate(db.Session) error BeforeDelete(db.Session) error AfterDelete(db.Session) error Validate() error

Uncertain if this were intentional, but I wanted to point it out nonetheless!

Thanks in advance for reading my issue.

rocco-datalign avatar Jul 30 '25 15:07 rocco-datalign