docs icon indicating copy to clipboard operation
docs copied to clipboard

Added the 'snapshot' option to readConcernLevel in connection string

Open hyunjinjeong opened this issue 5 years ago • 1 comments

It seems that the snapshot option of readConcernLevel has been missing from the document.

hyunjinjeong avatar Jun 08 '20 14:06 hyunjinjeong

Per https://docs.mongodb.com/manual/reference/read-concern-snapshot/ the snapshot read concern can only be used in transactions. It is technically possible to set read concern to snapshot globally, but if this is done all reads must be done in transactions on the client so constructed.

If the change proposed in this PR is made, it should be accompanied by a note stating that all read operations on a client constructed with snapshot read concern must be performed in transactions.

p-mongo avatar Sep 02 '20 00:09 p-mongo