Skip to content

postgrelize / RestoreOptions

Type Alias: RestoreOptions<T> ​

RestoreOptions<T> = QueryOptionsBase & Readonly<{ where?: WhereOptions<T>; }> & BulkHookOptions

Defined in: src/model/bulk-options.ts:174

Options of static restore, which clears deletedAt of soft-deleted rows of paranoid models.

Type Parameters ​

T ​

T = Values

See ​

Model.restore

Example ​

ts
await Post.restore({ where: { authorId: 1 }, transaction });
const opts: RestoreOptions<Post> = { hooks: false };

Released under the MIT License.