How to use Node JS and mongodb to Query Count

Introduction In this article we’ll be covering how to find the number of documents of a MongoDB collection. Specifically we will be using Node JS and MongoDB to query the count of a collection. There can be multiple MongoDB databases. Each database can contain several collections and each of these collections can contain hundreds of … Continued

$all in mongoose

Introduction Arrays are one of the most commonly used data structures in the programming world. They are perfect to store elements of the same data types. We can store any type of data in arrays. While working with databases, we may need to store data in an array. For example, the following MongoDB documents contain … Continued

How to use mongoose with Node

Introduction Node.js and MongoDB are part of MEAN and MERN stack. The pair is heavily used while building backends for web applications. MongoDB is a NoSQL database and it is quite popular for its simplicity. It is very simple to install and implement. With Node.js, we can easily perform various operations on MongoDB databases. These … Continued

Easy to follow mongoose example with NodeJS

Introduction In this article, we will discuss an easy to following mongoose example with NodeJS. We will create four API endpoints in NodeJS and mongoose, each of them performing certain CRUD operations on a MongoDB database. Setup connection So let’s start by setting up a server and a connection with the MongoDB database. 123456789101112131415161718var mongoose … Continued

Simple mongoose and node js Example

In this article, we will create a simple mongoose and Node Js example with step by step instructions. Please review the prerequisites below. Prerequisites – NodeJs and MongoDB installed. Knowledge of javascript. Nodemon installed. So let’s start. Install express with npm First of all, we need a package.json file to start with. Create a new … Continued

Simple Chat App using NodeJS and MongoDB Atlas Part 4

Introduction This lesson is Part 4 of the multiple-series tutorial, “Simple Chat App using NodeJS and MongoDB Atlas.” In Part 3, you learned how to code the server.js for the backend. Today’s lesson focuses on coding the index.html for the frontend. Let’s continue to use Node and MongoDB Atlas, the fully managed cloud database, to … Continued

NodeJs with Redis Web App Part 2

Introduction If you’re interested in building a web application that uses both NodeJs and Redis, this tutorial will provide all the information you need to get started. This second installment in our multi-part tutorial series picks up where the first article left off. We’ll continue our project, showing you how to configure the view of … Continued

How to CRUD MongoDB using NodeJS and SailsJS Part 2

Introduction This second part of this tutorial will go into how to utilize CRUD MongoDB using NodeJs and SailsJs for performing operations with MongoDB. The previous section of this tutorial series, part one, explained how to set up the project by installing SailsJs along with the necessary API or resource needed for the application. Prerequisites … 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

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.