Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
As long as we're doing common CRUD operations with our data, we most likely won't need to extend mongoose beyond what it does out-of-the-box. But real world applications will almost always have some atypical behavior they will need to implement, and ours is no exception.
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