Add
interface Add
The Add clause may be used to update numbers and add elements to sets. See the low-level DynamoDB documentation for more details on the underlying features and capabilities.
Number values and set elements may be added by using the += operator (or the plusAssign method):
add {
attr["foo"] += 15 // Increments the value of attribute `foo` by `15`
attr["bar"] += -15 // Decrements the value of attribute `foo` by `15`
attr["baz"] += setOf("a", "b", "c") // Adds the elements `["a", "b", "c"]` to the attribute `baz`
}Content copied to clipboard
Properties
Functions
Link copied to clipboard
Adds an update instruction to update this numerical attribute or to add an element to this set