Update conditions
set(path, value)
Set attribute value.
item.update(set('name', 'declan'))
setIfNotExists(path, value)
Only set attribute value if it does not already exist.
item.update(setIfNotExists('name', 'declan'))
add(path, value)
Add value to attribute.
item.update(add('hobbies', 'snowboarding'))
remove(path, value)
Remove value from attribute.
item.update(remove('hobbies', 'snowboarding'))
increment(path, value)
Increment an attribute value by number.
item.update(increment(age, 1))
decrement(path, value)
Decrement an attribute value by number.
item.update(decrement(age, 1))
delete(path, value)
Delete an attribute from the item.
item.delete('hobbies')