Aditya Gupta

NodeJS VM Module

VM stands for Virtual Machine. A Virtual Machine is a virtual environment created in your pc which can run programs. It can be helpful to execute a peace of code in a different environment so that it doesn’t interrupt the main environment. What is VM Module? VM is a built-in module in NodeJS used to

NodeJS VM Module Read More »

Controllers in NodeJS

A controller is a function that defines the response sent to a client when making a request to the server.  This tutorial teaches you the concept of controllers in NodeJS. We highly recommend you read the previous tutorial Separating Routers in NodeJS to better understand the Controllers. Controllers in NodeJS Below is the code that

Controllers in NodeJS Read More »

NodeJS MongoDB Remove

MongoDB database is used to store a large number of records, these records are called documents. These documents take some space in the memory, and to free up the space occupied by irrelevant documents they can be directly removed. Document removal also helps clean irrelevant, useless, or temporary data. Methods for Removing MongoDB Documents Documents

NodeJS MongoDB Remove Read More »

NodeJS MongoDB Sorting

MongoDB database has one or many collections in which records are present. These records are called documents in MongoDB. Overview of MongoDB Sorting Sorting is a technique to rearrange documents. This rearrangement can be ascending or descending according to the requirements. A real-life example is the student records, they are arranged in ascending order by

NodeJS MongoDB Sorting Read More »