DEV Community

Sven Glöckner
Sven Glöckner

Posted on

Document Versioning in MongoDB

Recently, I'm working on a client's project with MongoDB. The need for versioning of documents came up. While searching the web I found really helpful information I'd like to share.

https://www.mongodb.com/blog/post/building-with-patterns-the-document-versioning-pattern

https://www.askasya.com/post/revisitversions/

I will go the way with "separate collection for previous versions".

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more