We implemented counter operations with using subdoc mutatein functions. But decrementing goes under zero. In the documentation, if we use decrement function (not subdoc), decrementing operation will be restricted zero(not negative values.). But we’d like to use subdoc decrementing operation and do not want field to go under zero.
Is there a way to do that without doing manually?