Mongoose deleteOne

Introduction Mongoose provides many methods to delete documents from a collection. One of these methods is deleteOne(). People often confuse deleteOne() with delete(). But there is no method known as delete() in mongoose. The method that is used to delete a single document from a MongoDB collection is the deleteOne() method. In this article, we … Continued

Redis SCAN and MATCH Command Tutorial

Introduction This tutorial will provide explanations and examples on how to use the basic Redis Scan and Match command and how the commands will iterate through the available keys within a database. SCAN is a commonly used command and is a cursor-based approach for iterating over data structures set in the database. The MATCH command … Continued

NodeJs with Redis Web App Part 3

Introduction Welcome to “NodeJs with Redis Web App Part 3,” the multiple-series. In Part 2, you learned how to configure functionally for a specific part of the search feature for your application. When an exception is raised, an error message will display on the browser. Today, in Part 3, it continues with the search feature … Continued

NodeJs with Redis Web App Part 4

Introduction This is Part 4 of “NodeJs with Redis Web App,” a multiple-series tutorial. In Part 3, you learned how to configure search feature functionality. Specifically, how to show Redis values based on your search. Today, in Part 4, you’ll go over the steps on how to perform value deletions in Redis. Some of the … Continued

Redis Key Value Pair Command Basic Tutorial – Part 2

Introduction If you’ve spent any time working with Redis, you know that key-value pairs are used to store all the data in the system. Knowing how to access and manipulate these key-value pairs is essential to use Redis effectively. In the first installment of this two-part series, we looked at some common Redis key value … Continued

Redis Key Value Pair Commands Basic Tutorial – Part 1

Introduction This is the first part of a tutorial series explaining the basic Redis key value pair command. Redis is not a plain key-value store, and as such it can hold more complex data structures, such as strings. There are a number of commands for operating on strings to set a key to a new … Continued

How to Use the Mongoose findByIdAndUpdate Method

Introduction Updating data from a database can become hectic when there is way too much data. Mongoose provides a lot of methods to update data from MongoDB. Each of these methods is useful in their own way. One of these methods is the findByIdAndUpdate() method. The findByIdAndUpdate() method is specifically used to find a document … Continued

How to Use the Mongoose findOneAndUpdate Method

Introduction Updating data is a critical task. While performing the update operations, we should keep in mind, that a little mistake can cause a big problem. Mongoose provides many effective methods for updating data. These methods are designed for a single purpose (i.e. updating) but they work differently. One of these methods is findOneAndUpdate(). In … Continued

How to Use the Mongoose Find Method

Introduction Out of all the CRUD operations, retrieving data is most commonly used. There are many methods retrieving data from MongoDB when using mongoose. One of the most popular methods is the find() function. The find() function retrieves all the existing documents in a collection. We can also specify queries and projections to get the … Continued

How to Use the Mongoose Connect Method

Introduction MongoDB is a NoSQL database that stores data in the JSON format. It is one of the most popular databases in the modern web development world. MongoDB is often used with software stacks such as MERN and MEAN. Along with MongoDB, NodeJS is also an important part of these software stacks. MongoDB only creates … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.