Mongoose plugin to save document data versions. Documents are saved to a "versioned" document collection before saving original documents and kept for later use.
It was assumed that the refId would always be an ObjectId, however this isn't necessarily the case. This diff adds a new configuration option which allows the type of the refId to be changed to something else (e.g. String).
Coverage increased (+0.2%) to 90.476% when pulling 5ff31736ebfe9c2cc744decc53eda8ec8a17eea0 on jeresig:custom-refid-type into ae39796ab24bc0e27a7104b32836b72743f3bdd4 on saintedlama:master.
Coverage increased (+0.3%) to 90.625% when pulling 5275ea75ad9d7e62c980753b09780c6e88cb1365 on jeresig:custom-refid-type into ae39796ab24bc0e27a7104b32836b72743f3bdd4 on saintedlama:master.
It was assumed that the refId would always be an
ObjectId
, however this isn't necessarily the case. This diff adds a new configuration option which allows the type of the refId to be changed to something else (e.g.String
).