An overview for today's Mongoose lecture.
We are starting with an application that will run and serve our
index page with npm start
. Some of the client-side markup is completed.
We will complete this application using Angular and Mongoose.
- Connect to Mongo using Mongoose, a node module.
- Define a Mongoose Schema for our Documents.
- Create base GET, POST, PUT, and DELETE server-side routes.
- Implement the Mongoose syntax needed to support the above routes.
- Use Angular to add, display, update and delete people.
- Explore a pre-save hook provided by Mongoose.
- Mongoose schema
- Mongoose model
- Mongoose subdocument
- Hook
Quick rundown of new syntax we will use to query our database using Mongoose.
find
findById
findByIdAndUpdate
findByIdAndRemove
save
pre