Hi Admin,
Could I lock transaction when multi request call in cloud funtion in the same time. Like this: https://docs.mongodb.com/manual/faq/concurrency/
User 1 (request 1) -> read request start
User 1 (request 2) -> read request start
User 1 (request 1) -> read request success (withdraw available)
User 1 (request 2) -> read request success (withdraw available)
User 1 (request 1) -> write a new record to the db (withdraw success)
User 1 (request 2) -> write a new record to the db (withdraw fail because request 1 done ).
Thank you,