Aneesha S

Ledger Meaning in Blockchain: How It Differs from a Traditional Ledger

We have been using ledgers for a long time to keep track of financial transactions. But with the development of blockchain technology, the traditional ledger has changed a lot. Let’s understand what a ledger means in blockchain and how it is different from traditional ledgers. What is a Blockchain Ledger? A blockchain ledger is a […]

Ledger Meaning in Blockchain: How It Differs from a Traditional Ledger Read More »

db.collection.distinct(): Get Unique Field Values in MongoDB

In today’s world where AI is gaining too much popularity, suppose, you have created a website to show AI-generated articles on tending topics. These articles are stored in a MongoDB collection named “Articles”. Each document has a field “AI” containing the AI model used for that article generation. Now, to let users filter articles based

db.collection.distinct(): Get Unique Field Values in MongoDB Read More »

Update Multiple Documents in MongoDB: A Step-by-Step Guide for Node.js

In our previous tutorial, we learned everything about MongoDB findOneAndUpdate() and findAndModify() methods, but these methods can only update one document at a time and can be suitable for cases like updating a particular post, updating a single user information, etc. In cases where we have to update multiple documents based on some conditions, like

Update Multiple Documents in MongoDB: A Step-by-Step Guide for Node.js Read More »

Difference Between findOneAndUpdate() and findAndModify() in MongoDB

In MongoDB, two popular methods for updating documents are findOneAndUpdate() and findAndModify(). In this article, we will explain both methods, demonstrate them on different datasets, find the differences and discover which one is best suited for your needs. MongoDB findOneAndUpdate() Method MongoDB findOneAndUpdate() method updates the first document that matches the given condition. Even if

Difference Between findOneAndUpdate() and findAndModify() in MongoDB Read More »

MongoDB db.collection.findOneAndUpdate(): A Step-by-Step Guide for Node.js

It’s easy to find documents in a collection in the MongoDB database using methods like find() and findOne(), but when there is a need to find and in the meantime update a document, we have a special method findOneAndUpdate(). This method updates the first document that meets the selection criteria. Let’s learn about it in

MongoDB db.collection.findOneAndUpdate(): A Step-by-Step Guide for Node.js Read More »

Making HTTP Requests in Node.js With node-fetch

When developing web applications, we don’t actually build everything from scratch. We may sometimes want to “outsource” certain tasks. For this, we can use APIs from other websites that offer services that we integrate into our application without lifting a finger! To achieve this, we can use the built-in window.fetch() when using plain vanilla JavaScript.

Making HTTP Requests in Node.js With node-fetch Read More »