Class: BatchWritePolicy

BatchWritePolicy

A policy affecting the behavior of batch write operations.


new BatchWritePolicy( [props])

Initializes a new BatchWritePolicy from the provided policy values.

Parameters:
Name Type Argument Description
props Object <optional>

Policy values

Since:
  • v5.0.0
Source:

Members


commitLevel :number

Specifies the number of replicas required to be committed successfully when writing before returning transaction succeeded.

Type:
  • number
Source:
See:

durableDelete :boolean

Specifies whether a tombstone should be written in place of a record that gets deleted as a result of this operation.

Type:
  • boolean
Default Value:
  • false (do not tombstone deleted records)
Source:

exists :number

Specifies the behavior for the existence of the record.

Type:
  • number
Source:
See:

filterExpression

Optional expression filter. If filter exp exists and evaluates to false, the transaction is ignored. This can be used to eliminate a client/server roundtrip in some cases.

Source:

gen :number

Specifies the behavior for the generation value.

Type:
  • number
Source:
See:

key :number

Specifies the behavior for the key.

Type:
  • number
Source:
See: