Web Development with MongoDB and Node.js by 2014

Web Development with MongoDB and Node.js by 2014

Author:2014
Language: eng
Format: epub, mobi
Publisher: Packt Publishing


Note

It's important to understand how Mongoose and MongoDB handle the naming of collections based on your schema and models. Typically, you name your models using singular terms, and Mongoose will recognize this and create your collections using a pluralized model name. So, a model defined as Image will have a collection in MongoDB named images. Likewise, a model named Comment will have a corresponding collection named comments. Mongoose tries to be smart about this; however, a model defined as Person will have a corresponding collection named people and so on. (And yes, octopus will result in octopi!)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.