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

    Returns

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

    Parameters

    • tableName: string

      The table where the items will deleted from

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

      A map representing the key of the item to be deleted, or a list of maps of keys to be deleted

    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