Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPartialUpdater<T, K>

Interface for data processing components to update data items partially.

Type parameters

  • T

  • K

Hierarchy

  • IPartialUpdater

Index

Methods

Methods

updatePartially

  • updatePartially(correlation_id: string, id: K, data: AnyValueMap, callback?: function): void
  • Updates only few selected fields in a data item.

    Parameters

    • correlation_id: string

      (optional) transaction id to trace execution through call chain.

    • id: K

      an id of data item to be updated.

    • data: AnyValueMap

      a map with fields to be updated.

    • Optional callback: function

      callback function that receives updated item or error.

        • (err: any, item: T): void
        • Parameters

          • err: any
          • item: T

          Returns void

    Returns void

Generated using TypeDoc