This course will be retired on August 10, 2021. We recommend "REST APIs with Express" for up-to-date content.
Now that we have some idea of how Mongoose works, we can build an interface our application will use to access the database. Before we can write the schemas, though, we still need to know how we're going to associate question and answer objects in Mongo itself.
Blog series about Modelling one-to-many (AKA parent-child) relationships in MongoDB:
6 Rules of Thumb for MongoDB Schema Design, By William Zola, Lead Technical Support Engineer at MongoDB:
MDN page detailing Array.prototype.sort
Also, studying source code is a great way to learn! Here's jQuery's implementation of $.extend.
Skip down to line 124 (the line may move, so you can also use the browser's find in page and type in 'extend' to see where it is defined
(jQuery.extend = …).
You need to sign up for Treehouse in order to download course files.Sign up