SERVER-139241ClosedDone

express_write_id_with_embedded_eq.js fails in multi_stmt_txn passthroughs

The upsert case added by SERVER-138035 expects {{DollarPrefixedFieldName}}. In the multi_stmt_txn passthroughs, that error aborts the wrapping transaction, which also rolls back the {{beforeEach}} insert. The shared {{afterEach}} then finds an empty collection: {{expected [ ] to equal [ [Object], [Object] ]}}. *Fix:* Move the upsert case into its own {{describe}} block, starting from an empty collection that is committed before the upsert runs. The other cases keep their transaction coverage.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.