Players.update(Session.get("selected_player"), {$inc: {score: 5}});
I want to drecement the score .
Players.update(Session.get("selected_player"), {$inc: {score: 5}});
score 5
score 4
decrement by 1
>Solution :
Increment the score by -1 will allow decrementing by 1.
Players.update(Session.get("selected_player"), {$inc: {score: -1}});