Py mongo atomic transaction

WHY?

Mongodb doesnt have the concept of transaction.

You have to rely on atomic commits to avoid Race condition

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5e0b69c6-d6e4-4b58-bb0f-8ca5fe39e692/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/cf94d06f-e840-4cc6-9bbc-db077bb52893/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4307e580-a834-4195-8807-dbdf23b5824d/Untitled.png

Get the result back