Currently nesting `atomically` calls makes each call have its own atomic context. When each block completes, its changes get persisted.
It can be useful to nest these atomic contexts, such that changes to the same document made in different blocks are persisted together in a single atomic operation.
The nesting must be opted into either via an option to `atomically` or a global configuration option `join_contexts`. This option can also be used to join transaction contexts in the future.