MCPcopy Index your code
hub / github.com/sequelize/sequelize / beforeSave

Method beforeSave

src/hooks.d.ts:39–39  ·  view source on GitHub ↗
(
    instance: M,
    options: InstanceUpdateOptions<TAttributes> | CreateOptions<TAttributes>
  )

Source from the content-addressed store, hash-verified

37 beforeUpsert(attributes: M, options: UpsertOptions<TAttributes>): HookReturn;
38 afterUpsert(attributes: [ M, boolean | null ], options: UpsertOptions<TAttributes>): HookReturn;
39 beforeSave(
40 instance: M,
41 options: InstanceUpdateOptions<TAttributes> | CreateOptions<TAttributes>
42 ): HookReturn;

Callers 3

create.test.jsFile · 0.80
hooks.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected