Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

Version control for documents

Is there a way to version control documents like git? I want to be able to let users update a document, while allowing them to use previous versions if needed.

Hi Alexander_Lau,

Daniel Coupal, one of our curriculum engineers, created a blog post that discusses this very problem. Please see: https://www.mongodb.com/blog/post/building-with-patterns-the-document-versioning-pattern

The Document Versioning Pattern is just one option among many. A free MongoDB University course is available that dives much more into all the patterns if you’re interested:
https://university.mongodb.com/courses/M320/about

Justin

2 Likes