Options
All
  • Public
  • Public/Protected
  • All
Menu

Special options passed to Repository#remove method.

Hierarchy

  • RemoveOptions

Index

Properties

Optional chunk

chunk: undefined | number

Breaks save execution into given number of chunks. For example, if you want to save 100.000 objects but you have issues with saving them, you can break them into 10 groups of 10.000 objects (by setting { chunk: 10 }) and save each group separately. This option is needed to perform very big insertions when you have issues with underlying driver parameter number limitation.

Optional data

data: any

Additional data to be passed with remove method. This data can be used in subscribers then.

Optional listeners

listeners: undefined | true | false

Indicates if listeners and subscribers are called for this operation. By default they are enabled, you can disable them by setting { listeners: true } in save/remove options.

Optional transaction

transaction: undefined | true | false

By default transactions are enabled and all queries in persistence operation are wrapped into the transaction. You can disable this behaviour by setting { transaction: false } in the persistence options.

Generated using TypeDoc