Patrick S thinks this is interesting: In MongoDB, if you reference and try to use a collection that doesn't exist, it will automatically be created.The seedData function will first check to see whether we already have any records in our collection or not. If the collection is empty, a few sample records will be inserted. From Writing your first app from Web Development with MongoDB and Node.js by Jason Krol Publisher: Packt Publishing Released: September 2014 Note Collection and Seed data Share this highlight http://www.safaribooksonline.com/a/web-development-with/36390/ Twitter Facebook Google Plus Email Get Instant Access Now Start a Free Trial Have an account? Sign in. Minimise Unlock the rest of Web Development with MongoDB and Node.js and 30,000 other books and videos By clicking this box, you confirm that you have read and agree to the terms and conditions of our Membership Agreement, and you understand that when your trial period ends, you will be required to provide billing information if you wish to continue using the service. Unlock the rest of this book Start a Free 10-Day Trial loading Learn about Safari for Business Have an account? Sign in.