Suppose I do the following list of operations in MongoDB
- Start a session
- Start a transaction for that session
- run an
insertcommand with a new document - run a
findcommand on the collection of the inserted document - Commit the transaction
- End the session
I understand that outside of the transaction the insert done in the third step will not be visible until the transaction is committed, but what about within the transaction, will the find run in the fourth step see this new document or will it not?
