Skip to content

Collection.Insert() does not Use Validation Hooks #728

@rocco-datalign

Description

@rocco-datalign

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions