It would help if you provide a real source document, a real update with its real result.
Right now you have 2 objects with someAmount all being 10 and someTotal also being 10. We really don’t know how someAmount should be reflected in someTotal.
And before you publish documents, please read Formatting code and log snippets in posts
This is something to try
// starting collection
mongosh> c.find()
{ _id: 1,
subDocs:
[ { someAmount: 10, status: true },
{ someAmount: 10, status: false } ],
someTotal: 10 }
mongosh> amount = 7
mongosh> c.updateOne( { _id:1 } ,
{ "$inc" : { "someTotal" : amount } ,
"$push" : { "subDocs" : { "someAmount" : amount } }
}
)
// with the result
mongosh> c.find()
{ _id: 1,
subDocs:
[ { someAmount: 10, status: true },
{ someAmount: 10, status: false },
{ someAmount: 7 } ],
someTotal: 17 }