IPartialUpdater<T, K>

Interface for data processing components to update data items partially.

Description

The IPartialUpdater interface is used by data processing components to update data items partially.

Instance methods

updatePartially

Updates only few selected fields in a data item.

updatePartially(correlationId: string, id: K, data: AnyValueMap): Promise<T>

  • correlationId: string - (optional) transaction id used to trace execution through the call chain.
  • id: K - id of the data item to be updated.
  • data: AnyValueMap - map with fields to be updated.
  • returns: Promise<T> - updated item