The `db` Property in Mongoose

Mongoose connections have a `db` property that lets you bypass Mongoose and talk to MongoDB directly. Mongoose provides numerous powerful features, like middleware and validation. But sometimes you want to bypass Mongoose and use the MongoDB Node.js driver directly. Mongoose connections have a db property that let you access the MongoDB driver's db handle. Here's what you need to know.

Using MongoDB with Mongoose

We’ll look at how to use Mongoose to manipulate our MongoDB database. To make MongoDB database manipulation easy, we can use the Mongoose NPM package to make working with MongoDB databases easier.

MongoDB Atlas Setup and Express Connection

In this post, I’m going to explain how to create an online MongoDB database on MongoDB Atlas and write a basic connection script in express to connect that database.

How to connect to a MongoDB with Nest.js

Leanr how to connect to a MongoDB with Nest.js. I highly prefer to use a combination of Mongoose and the Mongoose Nest.js library. Create a complicated schema with Mongoose using NestJS can be a pain in certain way, but once you dominate it, it is pretty cool how it works.

How To Set Up Mongoose With Express.js

I demonstrated how to set up Nunjucks template engine in your Express project. In this article, we are going to connect the app to a MongoDB database using Mongoose. Mongoose is an ODM (Object Document Mapper) that allows interaction with MongoDB databases using JavaScript objects.

What's New in Mongoose 5.11: Custom Casting for Paths

Mongoose 5.11.0 was released on November 30, 2020 and includes 17 new features, including 5 community contributions. The biggest change is officially supported TypeScript bindings, but one of the ones we're most excited about is customizable casting logic for individual paths. In this article, I'll discuss this new feature and what it can be used for.

How to Install and use Mongoose with Node.js for MongoDB

In this tutorial, you'll see How to Install and use Mongoose with Node.js for MongoDB

Mongoose Beginner Tutorial (Simple but Powerful ODM)

Mongoose Beginner Tutorial (Simple but Powerful ODM). Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Mongoose supports both promises and callbacks.

How to Insert Multiple Documents using One Line in Mongoose

In this video we will show you How to Insert Multiple Documents using One Line in Mongoose

How to Read or Quering the Documents using Mongoose in Express App

In this video we'll learn How to Read or Quering the Documents using Mongoose in Express App

How to Connect Node.js with MongoDB

In this case, database is the main thing of that application. I got you there, right? Most applications, microservices, cronjobs etc. do CRUD operations in their lifecycles. I work as full stack software engineer in Istanbul and wrote tons of CRUD operations. Finally, I found a proper way to connect MongoDb in NodeJs (with Mongoose of course.). Before we dive deep into this, we need couple of things to do.

Angular 9 Nodejs MongoDB CRUD Example – using Express RestAPIs + Mongoose

In the tutorial, I introduce how to implement "Angular 9 Nodejs MongoDB CRUD Example" using Express RestAPIs and Mongoose ODM Queries

Server Side Pagination in Nodejs MongoDB (Atlas) RestAPIs Example - Express

In the tutorial, I introduce how to implement "Server Side Pagination in Nodejs MongoDB Example" using Express RestAPIs and Mongoose ODM

CRUD Nodejs Express MongoDB Atlas Example | RESTful APIs Post/Get/Put/Delete & Mongoose

In the tutorial, I guide you how to implement an "CRUD Nodejs, Express, MongoDB Atlas Example" with Mongoose ODM to build a Restful APIs

A plugin for Mongoose to normalize JSON output

@meanie/mongoose-update-denormalized .A plugin for Mongoose to normalize JSON output

Mongoose Events | RESTful API using NodeJS and MongoDB

Learn how to build a REST API using NodeJS and MongoDB. In this video you will learn how to clean up the app.js file and putting all Mongoose connection related stuff in a separate file. You will learn how to handle mongoose connection events like connected event, disconnected event, and error event. You will also learn how to use process.on('SIGINT') to terminate a nodejs application.

Mongoose with Node.js - Object Data Modeling

In this article we'll learn through an example application how we can use Mongoose to model our data and validate it before storing it to MongoDB.

NestJS Tutorial for Beginners (Crash course) Services with Mongoose #9

Hi, I'm Tarun - a full-stack software developer based out of India. I build open-source projects and write about modern JavaScript, Node.js, design and web development.

How To Link Mongoose And Typescript for a Single Source of Truth | Hacker Noon

There are a few tools out there to help us merge mongoose with typescript such as Typegoose and ts-mongoose. Mongoose is popular

Authentication in Node.js - #8 Protected Fields in Mongoose

Oftentimes, when building the user's endpoint in a REST API (typically, /me or /home), you'd want to only expose a subset of the fields stored in the databas.