[REST] Atomic increment/decrement operations

Home - [REST] Atomic increment/decrement operations

Muhammad Irwantoro asked 2 years ago

Request new feature, for column with Number type.
update without to know it value first.
lets say we have bucket Monster with column hp = 2017. Two player attack him. 
player 1 attack = 40, player 2 attack = 32.
we no need to know monster current hp for each request.
example player 1: where={"monsterId"="aiueo", "hp"={"-=":40 }}
example player 2: where={"monsterId"="aiueo", "hp"={"-=":32 }}
calculation done at server side.
you can guess, monster hp now is 1945.
Ok monster still alive, but Indonesia merdeka.

1 Answers
Alann Maulana Staff answered 2 years ago

Hi Muhammad,
Glad to hear your request, our engineers still manage to add a lot of features including yours on future release. Keep up the good work 🙂

Your Answer