• Create a map to put one or more items in a call to batchWrite.

    Returns

    A map in the format { tableName: [ { PutRequest: { ... } }, ...] }

    Parameters

    • tableName: string

      The table where the items will be put

    • item: Record<string, any> | Record<string, any>[]

      A map of attribute names to values, or a list of maps of attributes and values

    Returns Record<string, (Omit<WriteRequest, "PutRequest" | "DeleteRequest"> & { DeleteRequest?: Omit<DeleteRequest, "Key"> & { Key: Record<string, NativeAttributeValue> | undefined }; PutRequest?: Omit<PutRequest, "Item"> & { Item: Record<string, NativeAttributeValue> | undefined } })[]>

Generated using TypeDoc