Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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