Editorial question102K views1,072 votes0 answers1,927 following
AI-generatedDoes Cosmos DB provide an automatic rollback mechanism when a schema validation rule changes during a transaction?
Goal Determine whether Cosmos DB can automatically revert writes that succeed before a schema validation rule change but become invalid after the change, without requiring application‑level compensation. The container‑level JSON schema validation is enforced at write time, and while TransactionalBatch provides atomicity across documents, a schema modificatio