'Firebase realtime database configure rules
Is there a way to set the value of a key to null therefore delete it, if its new value is 0. For instance:
"totalGames": {
"ps5": 15,
"ps4": 10,
"ps3": 0
}
I am using increment(delta) to update the values and it can be a negative value, that's why I want to set the rule. I didn't find a solution anywhere, does anyone have a suggestion?
Solution 1:[1]
You can send the parameters through the URL to the other page...
For example, your URL when you call the other page can be of the following format:
www.myurl.com?name=JANE&[email protected]
In the other page, make sure you check to see if there are any parameters included in the URL, and do the corresponding action.
Reference: https://easyautotagging.com/javascript-get-url-parameter/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | luckeycharms13 |
