Nest.JS | Monads -> List
The List monad, also known as the Array monad, is a monad that is used to represent computations that can have multiple possible outcomes…
Nest.JS | Monads -> IO
The IO monad, also known as the “Input/Output monad,” is a functional programming concept that allows you to separate the description of an…
Nest.JS | Monads -> Reader
The Reader monad, also known as the “Environment monad,” is a functional programming concept that allows you to pass an environment, or a…
Nest.JS | Monads -> State
The State monad is a functional programming concept that allows you to manage state in a functional, immutable way. It allows you to write…
Nest.JS | Monads
A monad is a design pattern and a mathematical structure that is used to model computations in a functional programming paradigm. It is a…
Nest.JS | Providers -> Twilio.
To send an SMS in Nest.js using Twilio, you’ll first need to install the Twilio npm package by running npm install twilio. Then, you can…
Node.JS | Atomic Operations
An atomic operation is a single, indivisible action that is performed on data. It is a type of operation that guarantees that the operation…
Nest.js | Memoization vs Cache
Memoization and caching are related but distinct concepts. Memoization is a technique where a function stores the results of previous…
Node.JS | How to Optimize Your API
There are several ways to optimize a Node.js application, including:
MongoDB | Remove old data
Today we will be looking at how to remove old records in MongoDB based on X days. Before we do anything, we need to generate a list of…