Vantiq does not support this kind of update syntax currently in VAIL so you have to do a SELECT ONE, followed by the UPDATE, like this:
var current = SELECT EXACTLY ONE FROM order_detail where id == 123
UPDATE order_detail(amount: current.amount + 100) where id == 123
Vantiq does not support this kind of update syntax currently in VAIL so you have to do a SELECT ONE, followed by the UPDATE, like this:
var current = SELECT EXACTLY ONE FROM order_detail where id == 123
UPDATE order_detail(amount: current.amount + 100) where id == 123