Relationships between Mongo Documents
![](./talk-1-mongo-references/mongo-references.png)
Creating and maintaining relatopnships between mongo documents enable powerful models to be constructed and queried.
Mongoose Seeding
![](./talk-2-seeding/mongo-seeding.png)
Seeding the database can simplify exploratory development, prepopulating the database with simple test data during development.
Candidate Model
![](./talk-3-candidates/candidates.png)
Users should be able to donate to different candidates. We extend the model to include Candidates, incorporating candidate references into donations.
Lab-11 Seeding
![](./book-seeding/img/main.jpg)
Include a mongoose seeder component in the application. Use this to validate a new Candidate model, preloading it with a json specified object graph.