The Redis Data Types Use in the Database (Part 2)

Introduction This is part two in a tutorial series explaining the various Redis data types and how the data types are used in the database. Redis is a data structure server that supports different types of values. Traditional key-value stores have string keys connected to string values, but Redis can hold more complex data structures, … Continued

The Redis Data Types Used in the Database (Part 1)

Introduction You may have heard Redis described as a simple key-value store, but it’s actually much more. Traditionally, key-value stores are able to relate string keys with string values; however, Redis is a data structures server, which means that it can store a variety of complex data structures as values. In this article, we’ll discuss … Continued

Node Js MongoDB Multiple Queries

Introduction This article is about how with Node JS and MongoDB to do multiple queries by combining query arguments into the find() method. Query in MongoDB is the part that is used to match documents in a collection. Sometimes, we do not need to perform an operation on all the documents, we only need some … Continued

mongoose Query LIKE

Introduction In SQL, we have the LIKE operator that is used to match a pattern in a string. It is very useful while performing CRUD operations on a database. Unfortunately, no such operator exists in MongoDB. But it does not mean we cannot achieve the functionality of the LIKE operator in MongoDB and mongoose. In … Continued

mongoose Pagination with NodeJS and MongoDB

Pagination Pagination is a process in which a document is divided into discrete pages. In simple words, if we have a document containing a large amount of data, and we wish not to print all of it in once, we divide this data into “pages”. These pages contain data according to the limit specified. In … Continued

How to use the mongoose update query in NodeJS

Introduction Out of all the CRUD operations, the Update operation should be handled with utmost care. There could be hundreds of records in a database. One mistake and you end up updating a wrong record. This can lead to further problems. So the most important part of an Update operation is where we match the … Continued

NodeJS and Redis Example

Introduction If you’re developing an application using NodeJS, you may want to harness the power of a Redis data store for your app. Fortunately, it’s easy to integrate Redis into your NodeJS apps. In this article, we’ll look at a NodeJS and Redis example and see how a Redis key-value store can be used within … Continued

How to use mongoose to group by date

Introduction Dates are an important part of database work. They are often used to keep the track of records. There are a lot of ways to work with dates at the backend. MongoDB also supports date. One of the uses of dates is to group records. In mongoose, we can use the $group stage of … Continued

mongoose Query Example

Introduction There is a vast range of methods as well as operators in mongoose that could be used on MongoDB collections. Each of these methods and operators has its own specialty. In this article, we will focus on the query part of these methods and we will also discuss some of the operators. For performing … Continued

mongoose bulkWrite

Introduction Mongoose provides a vast range of methods that can be performed on a MongoDB collection. We may need to use multiple methods at a time on a collection. This can be frustrating. Writing a query and then executing it, again writing another query and then executing it. It goes on like this. So to … 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.