An extention to the version-repo package with a backend provided by MongoDB.
See version-repo for the general version-repo API.
Repositories Classes
MongoRepo (API: Asynchronous, Stored Types: Any)
A synchronous repository which keeps resources in memory.
Constructor parameters
-
collection: A MongoDB Collection object.
-
config: An object with the following attributes:
- update: (optional) one of "latest" (default), "any", "none"
- delete: (optional) one of "latest" (default), "any", "none"
Example:
var MongoClient = MongoClient;var MongoRepo = MongoRepo; MongoClient;