Lookup in MongoDB

Introduction If you plan to perform any aggregation operations in MongoDB, it’s important to understand the aggregation pipeline and its various stages. Documents that enter the aggregation pipeline are transformed in some way at each stage; the transformed results are then passed to the next stage of the process. In this article, we’ll focus on … Continued

Limit Aggregation in MongoDB

Introduction When you perform any kind of aggregation operations in MongoDB, documents pass through what is known as the aggregation pipeline. The MongoDB aggregation pipeline is comprised of multiple stages. The documents that enter the pipeline are transformed during each stage; the results of a stage are then passed to the next stage. In this … Continued

Guides on Using the Commands in Redis Cheat Sheet Part 1

Introduction This is part one of a Redis cheat sheet tutorial series. Redis, an acronym for Remote Directory Server, is an in-memory database that supports multiple data types. Redis works by mapping keys to values that functions as a key-value-based caching system. Redis commands perform some operations on Redis server, with some commands being able … Continued

Guides on Using the Commands in Redis Cheat Sheet Part 3

Introduction Remote Dictionary Server (Redis) supports hashes, sets, lists, strings, and so much more. Since the data structure store is open source and features in-memory (diskless), it’s perfect for use as a message broker, cache or database. Automation is a key component of Redis too. It has built-in transactions handling and replication. Redis also handles … Continued

Guide to Using the Commands in Redis Cheat Sheet Part 2

Introduction If you’re just getting started in Redis, you may feel overwhelmed by the number of commands that are available for use. With a bit of practice, you’ll find that it’s easy to master these commands and harness the full power of Redis. However, a Redis cheat sheet can serve as a handy reference while … Continued

MongoDB Tutorial

Introduction MongoDB is one of the most popular NoSQL databases. It stores data in BSON format, which is nothing but Binary-encoded JSON. A record is stored in a document, and such documents are stored in a collection. The collections are stored in a database. MongoDB provides several methods that could be used to perform CRUD … Continued

mongoose schema types

Introduction MongoDB is a schema-less database. It is one of the reasons we use mongoose with it. Mongoose is an Object Modelling Library(ODM). Apart from providing schema, mongoose also provides Validation. Other features of mongoose are plugins, middleware, and population. MongoDB stores data in BSON. BSON in binary encoded JSON. It provides more data types … Continued

MongoDB Upsert

Introduction The Update operation is one of the CRUD operations that is used to perform modifications in single or multiple records. MongoDB provides the update() method to perform the update operation. The update() method not only updates documents but also provides several options that could be used with it. These options include upsert, multi, writeConcern, … Continued

mongoose Tutorial

Introduction Mongoose is an Object Modeling Library(ODM). It is heavily used with nodejs when MongoDB is there. One main advantage is that it provides abstraction. MongoDB is schema-less but with mongoose, the developers can define a schema. It overcame the one main problem. Moreover, MongoDB methods can easily be used in mongoose. Another important feature … Continued

MongoDB update

Introduction A single MongoDB collection can contain hundreds and hundreds of documents. While working with a database, we always require to make changes in the existing data. This operation is known as the Update operation. The update operation should be performed very carefully. One mistake and we can have a lot of trouble. No one … 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.