I checked the query for typos and still doesn’t work, if I change $inc for $set then it works but increment doesn’t.
This is what I’m sending:
{ ‘$inc’: { Balance: -1118 } }
The field Balance keep it’s value of: 4872 if I use $inc. With $set it changes the value to -1118.
Right now the collection only has one document so the upsert: true doesn’t adds a new document and still I get the modifiedCount: 1