Re:MongoDB singleton connection in Node.Js
by joshguthrie on Friday April 05, 2013 @09:15AM
(#5498178)
From what I remember, Mongoose pretty much does the same.
The "Attach each collection to your MongoDbSingleton as MongoDbSingleton[Collection]" trick was actually taken from Mongoose (which uses MongooseSingleton[Model] instead).
The "Attach each collection to your MongoDbSingleton as MongoDbSingleton[Collection]" trick was actually taken from Mongoose (which uses MongooseSingleton[Model] instead).