Joel Watson
Joel.Watson92@gmail.com | LinkedIn: /in/joel3rbear | Twitter: @Joel3rBear
Project maintained by JoelMWatson
Hosted on GitHub Pages — Theme by mattgraham
Class 03 Reading: MongoDB & Mongoose
Why would a developer choose to make data models?
Developers should choose to make data models because they ensure that the data being saved is valid and consistent.
What purpose do CRUD operations serve?
CRUD operations serve the purpose of Creating, Reading, Updating, and Deleting data.
What kind of database is Postgres? What kind of database is MongoDB?
PostgreSQL database is a Relational Database Management System (RDBMS) with rows and columns where as MongoDB is a NoSQL Database that uses documents to represent records.
What is Mongoose and why do we need it?
Mongoose is an ODM (Object Document Mapper) which maps our objects to document records in the database. Sequelize is the PostgreSQL ORM (Object Relational Mapper).
Objects: Students, Teachers School;
- School to Teachers would be a one to many relationship related by the id of the school the teacher works at.
- Students to Teachers would again be a one to many relationshop related by the id of the teacher whos class the student was in.
- Finaly, School to Students would also be a one to many relationshop related by the id of the school.