mongoose push

Introduction There are several data structures such as trees, graphs, arrays, stacks, etc. Arrays are one of the most commonly used data structures in the programming world. They are perfect to store values. We can store any type of data in arrays. While working with databases, we may need to store data in an array. … Continued

mongoose find one

Introduction MongoDB provides several methods to perform a Read operation on a collection. All these methods are supported by mongoose also. Some of the common methods are find(), findOne(), findOneAndUpdate(), and findOneAndDelete(). Each of these methods has unique functionality. We can use them according to our requirements. In this article, our focus is on the … Continued

mongoose findById

Introduction One of the most frequently used CRUD operations is the Read operation. Mongoose provides several methods to read the data from a database. Each method has its own specialty. We can use these methods according to our requirements. One of these methods is the findById() method. As the name suggests, the findById() method is … Continued

MongoDB Create Database

Introduction MongoDB is one of the most popular NoSQL databases. A NoSQL database does not use tables for storing data, instead, it uses multiple ways for storing data. These ways include key-value, document-based, and column-based. MongoDB is a document-based NoSQL database. In this article, we will discuss using MongoDB to create a database. Create a … Continued

PHP and MongoDB Connection

Introduction If you’re using PHP to build applications, you may want to interact with a MongoDB database in your code. Fortunately, it’s easy to connect to a MongoDB database from a PHP script with just a bit of setup and configuration. In this article, we’ll show you how to set up a PHP and MongoDB … Continued

How to Use the Postgres Select Now Function

Introduction This tutorial will cover the PostgreSQL GETSET and NOW() functions. A Redis get set data type is an unordered collection of unique and automatically specified string values. The SELECT statement is used to select certain specified data from the database and the NOW() function is used to obtain the current date and time based … Continued

How to Use the Redis Get Set Command

Introduction Although Redis is sometimes described as a database, it can best be defined as an in-memory key-value store. Because Redis stores data based on keys and values, it’s important to know how to use various Redis commands to manipulate data in this format. The Redis “get set” (GETSET) command allows you to set a … Continued

Show collections in MongoDB

Introduction When you’re working with multiple collections in MongoDB, you may need to retrieve a list of all the collections available in your database. Fortunately, it’s easy to obtain this information with a simple MongoDB command. In this article, we’ll explain how to show collections in MongoDB and walk through an example of how to … Continued

How to Use the Redis HSET Data Type

Introduction If you’re getting started with Redis, it’s important to have a good understanding of hashes and how they’re used. A hash is a data structure that stores a mapping between a key and a value. Redis hashes can hold multiple key-value pairs and take up little space, making them well-suited to represent complex data … Continued

Comparison Query Operator in MongoDB

Introduction When you’re working with data stored in MongoDB, there may be times when you need to compare two expressions to determine whether one is greater than, less than or equal to another. We can use comparison query operators to evaluate expressions and obtain the information we need. In this article, we’ll explain how 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.