SQL to MongoDB Chart Mapping

Introduction If you’re used to working with relational databases that store data in rows, you’ve probably developed some solid SQL skills. Switching to a NoSQL database like MongoDB, which stores data in collections, may seem intimidating. Don’t fear– most common SQL terms and queries can be easily translated to MongoDB. In this article, we’ll present … Continued

How to Install and Setup a MongoDB Server on macOS

Introduction MongoDB and macOS make a complementary duo. MongoDB is the perfect storage database for JSON documents. It offers scalability as well as flexibility for indexing and querying. Combine it with the power of macOS and you’ll unleash zooming productivity that will spoil you. Install MongoDB server macOS and there’s nothing stopping your search capabilities. … Continued

How to Add Static Methods with Mongoose

Introduction If you’re using the popular Schema-Model based library Mongoose to interact with MongoJS from NodeJS then this article will provide you a basic understanding of static methods. If you don’t know what a static method is, we’ll define them in the next section, and then we’ll show you a couple examples that will demonstrate … Continued

How to Add Instance Methods with Mongoose

Introduction If you’re using the popular Schema-Model based library Mongoose to interact with MongoJS from NodeJS then this article will provide you about the basics of instance methods. If you don’t know what an instance method is, we’ll show you, and then you’ll quickly find ways to utilize this functionality because it comes in extremely … Continued

How to Delete Documents with Mongoose

Introduction If you’re using the popular Schema/Model based library Mongoose to interact with MongoJS from NodeJS then this article will help you with a variety of options to delete documents. Whether you need to delete all documents in a collection, a single document by id, or delete documents that match a specific condition this tutorial … Continued

How to Find Documents with Mongoose

Introduction If you’re using the popular Schema/Model based library Mongoose to interact with MongoJS from NodeJS then this article will help you find documents. We will detail a few of the common options for finding documents. Whether you need to find all the documents, a single document by id, or limit to a set number … Continued

How to Connect to Mongo using Mongoose

Introduction If you are considering or already using the npm module Mongoose as your driver to interact with MongoDB the first thing you’ll need to do in your Javascript is to setup the connection between Mongoose and your MongoDB service. In this article we take you step-by-step through how to establish and verify the connection … Continued

How to do a One-to-Many Join using Mongoose

Introduction If you are considering or already using the npm module Mongoose to handle your MongoDB interactions at some point you’ll probably need to know how to perform a join that has a one-to-many relationship. One-to-many joins are an extremely common common relationship. An example of a one-to-many relationship would be that one user can … Continued

How to Join Collections using Mongoose

Introduction If you are considering or already using the npm module Mongoose to handle your MongoDB interactions at some point you’ll probably need to know how to join two collections. If you’re unfamiliar with the concept of joins, a join would be like if you had a collection of Posts and each post had a … Continued

How to Setup a NodeJS App with MongoDB using Mongoose

Introduction NoSQL databases and running your app’s backend with Javascript have both become increasingly popular. In this tutorial we will show you how to use NodeJS to connect with MongoDB using the Mongoose library to setup the backend for a simple web application. If you’re unfamiliar with these technologies, MongoDB is a NoSQL database technology … 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.