'how to increase value in Realtime Database
const dataFromDbUser = admin.database().ref('Base/' + 'users/'+ userId);
dataFromDbUser.on('value',(item)=>{
item.val().money //10
})
how can i increase the value of money? Thank you
using node.js
this is what the base looks like
Base:{
users:{
22333443:{
money:10
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
