getOneById abstract method

Future<T?> getOneById(
  1. String? correlation_id,
  2. K id
)

Gets a data items by its unique id.

  • correlation_id (optional) transaction id to trace execution through call chain.
  • id an id of item to be retrieved. Return that receives an item Throw error.

Implementation

Future<T?> getOneById(String? correlation_id, K id);