meteor - How to decrement like $dec? -



meteor - How to decrement like $dec? -

in meteor leaderboard illustration there line:

players.update(session.get("selected_player"), {$inc: {score: 5}});

how can gracefully decrement same field? sadly, there no $dec.

increment -1?

$inc: {score: -1}

meteor

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -