i am using firebase database REST api to post data. The structure is
orders: {
"milk" : 10,
"cream" : 13
}
My use case is to increment the quantities by 1 to look them as:
orders: {
"milk" : 11,
"cream" : 14
}
In general, I see two REST calls:
- make a GET call to get the current numbers in my client
- make a PUT call with updated number
is there a way to do that as a single call to increment current values?