mongodb – Subtracts two numbers total to return the difference
Consider I have the following collection: [ { "total": 48.0, "status": "CO" }, { "total": 11.0, "status": "CA" }, { "total": 15916.0, "status": "PE" } ] I need to realize the difference of PE status - (CO + CA). The…