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(context: IContext, id: K, data: AnyValueMap): Promise<T>

  • context: IContext - (optional) a context to trace execution through a 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