Skip to content

//tempest2/app.cash.tempest2/View/save

save

[jvm]\ abstract fun save(item: I, saveExpression: Expression? = null)

Saves an item in DynamoDB. This method uses DynamoDbClient.putItem to clear and replace all attributes, including unmodeled ones, on save. Partial update, i.e. DynamoDbClient.updateItem, is not supported yet.

Any options specified in the saveExpression parameter will be overlaid on any constraints due to versioned attributes.

[jvm]\ open fun save(item: I)