Function sourceToItem

  • from Elasticsearch document to model item

    • replace the elastic's $id field to _id of dynamo-table.

    Type Parameters

    • T

    Parameters

    • _source: T

      from elastic-search

    • idName: string = '$id'

      (optional) global id of elastic. (default is $id)

    Returns T

Generated using TypeDoc