Databases, such as MongoDB, are very good at querying lots of data and updating that data frequently. In most cases, however, we are only performing queries on the latest state of the data. What about situations in which we need to query _previous_ states of the data? What if we need to have some functionality of version control of our documents? This is where we can use the Document Versioning Pattern.
↧