MongoDB has an $inc field update operator that allows you to increment a value by a specific amount.
You can use positive and negative values (i.e. to increment or decrement the value).
If the field doesn’t already exist, it is created with the specified value.