Categories
Is it possible to keep models in sync in mongodb?
For example, if I add/remove a field, did it delete/add a field from all existing documents when performing synchronization? UPD: I'm using the mongoose library
Answer the question
In order to leave comments, you need to log in
If the standard mongodb driver: https://docs.mongodb.com/manual/reference/method/d... If you use something like mongoose, then look towards the migration libraries: https://www.npmjs. com/package/migrate-mongoose
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question