Tracking document versions with MongoDB
Consider requirement that we have to be able to recreate/query any version of a document that ever existed in a particular collection. So we start out with: { docId: “A”, version: 1, color: “red”, locale: “USA” } If we need…