MongoDB
Repository The repository is like a connector between the datasource and models. One of its jobs is to act like database injecter and extracter: when you want to create or fetch an entity of a model, repository will help you inject data into database or extract data from database
Controller Controller is the most important component. It contains the code for all of your project functions and handles all business logic.
mongo Shell
db
mongod
mongod stands for “Mongo Daemon”. mongod is a background process used by MongoDB. The main purpose of mongod is to manage all the MongoDB server tasks. For instance, accepting requests, responding to client, and memory management.
Query Data
db.myCollection.find().pretty()