MongoDB CRUD Operations
Mongoose provides a simple schema-based solution to model your app data. In this post, we will see how we can use it to write basic CRUD operations in Node.js.
Understanding Schema
First let's write a Mongoose schema for a sample requirement. Example entity is Team, where I want to save: