For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.

Write Lifecycle Diagrams

These diagrams show the lifecycle of a findAndModify operation on primary and secondary replica set members. The lifecycles of other write commands are similar, but the number of resulting oplog entries may vary.