In this article you will learn how to build Node.js based REST API using Mongoose Node Module.
Tag Archives: Mongoose
Develope Node.js + MongoDB Application with Mongoose
In my previous post, I demonstrated how to perform CRUD (Create, Read, Update, Delete) operations using Node.js and MongoDB API. This tutorial explains how to easily develop Node.js and MongoDB application with Mongoose application by using the Mongoose API. This tutorial assumes that reader has the knowledge on Node.js and MongoDB and knows how to set up the environment for this tutorial. Those who want to read the basic tutorials on Node.js and MongoDB please refer Introduction to Node.js and How to Install MongoDB on Windows.
If you are interested in receiving more updates on Node.js and MongoDB tutorials, please subscribe here.
Here is the overview of the sections covered in this tutorial.
- Introduction to Mongoose API
- Connecting to MongoDB using Mongoose
- Create Schema and Model in Mongoose
- Inserting Data using Mongoose
- Querying the DB using Mongoose
- Updating existing documents
- Deleting existing documents
- Example Application
A couple of months ago, I started working on a collaborative platform for people to efficiently work together on projects, with some cool integrations like Slack to notify users about important events from the Slack team, and Trello to keep an eye on the project realisation.
In this blog, I talk about, what are the things I did to set it up running on Windows 7 PC. Here I am creating a simple application which uses Express Framework with NodeJS and Mongoose to connect with MongoDB. Installation is quite simple if you follow their manual. I could not install as I was behind […]
I am using Mongoose since last few months and while querying MongoDB in Node.js and getting results. While doing that I came up with some cases that made me scratch my head for more than couple hours just to figure our it is little ‘gotcha’ (may be because I did not read through all the docs of […]