Hi Technies,
We're in the process of updating our MongoDB document, which involves both adding new fields and modifying existing fields. However, we have many older documents in the database that don't reflect these changes.
Example Old Document Structure:
{ "name": "exampleName", "surname": "exampleSurname" }
New/Updated Document Structure:
{ "fullName": "exampleName exampleSurname", // Updated field "status": "active", // New field }
The Challenge: How should we handle older documents that:
Here are the options I'm considering:
I'd love to hear your thoughts on the best approach for handling these types of schema changes. Has anyone successfully managed a similar situation, and what solution worked best?
Thanks for sharing your experience!