Skip to main content

Schema Versioning Pattern

  • add a schema_version field to the document

To Handle multiple versions:

  • application handles both old and new version
  • run a background task to update all documents to new version
  • once migrated to new verion, remove code that handles old version