IGetter<T extends IIdentifiable<K>, K>

Interface for data processing components that can get data items.


The IGetter interface is used by data processing components that are capable of getting data items.

Instance methods


Gets a data item by its unique id.

getOneById(correlationId: string, id: K): Promise<T>

  • correlationId: string - (optional) transaction id used to trace execution through the call chain.
  • id: K - id of the item to be retrieved.
  • returns: Promise<T> - returned item.