Doug Toppin's Blog

My thoughts on technology and other stuff

NodeJS, Mongo and Mongoose Collection Pluralization

If you happen to be using NodeJS, Mongo and Mongoose you can spend a couple of hours debugging before discovering that Mongoose pluralizes collection names (silently) unless you explicitly tell it not to. You can see this happen in queries if you start mongod in verbose mode with -vv. http://stackoverflow.com/questions/7230953/what-are-mongoose-nodejs-pluralization-rules

Comments