I want to set status based on the usedBalance, if usedBalance is 0 then set status false and if not then set true but when i use $inc operator in pipeline then it's gave me an error like 'Invalid update pipeline operator: "$inc"'

Please update your post after reading:

Also update your post title to something shorter and put the explication of the issue as text within the post.