Hi @MikeZheng-3371Thank you for posting your question on Microsoft Q&A and for using Azure services.
From my understanding you are trying to do transactions on multiple collections.
Multi-document transactions are supported within an unsharded collection in API version 4.0. Multi-document transactions are not supported across collections or in sharded collections in 4.0.
All drivers that support wire protocol version 4.0 or greater will support Azure Cosmos DB API for MongoDB multi-document transactions.
https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/use-multi-document-transactions
Regards,
Oury