Mongoose Internals: Compiling Models and Change Tracking

Most Recent

Mongoose Internals: Schemas, Schema Options, and Models

April 21, 2021

I've gotten a lot of requests for a guide to Mongoose internals, because it's hard to contribute unless you have the

What's New in Mongoose 5.12: Populate Transform

March 24, 2021

Mongoose 5.12.0 was released on March 11, 2021. This new release includes a few neat new features. In this article, I'd like to highlight a particularly useful

Working with Protobufs in Node.js

February 24, 2021

Protobuf is a neat format for serializing and deserializing objects. Like JSON, but with several key tradeoffs. Here's how you can use protobufs in Node.js, including how to use them with Express.

Getting Started with Apache Kafka in Node.js

February 11, 2021

Apache Kafka is a popular platform for streaming and pub/sub. It is very common at large companies with massive engineering teams, and less common at smaller companies. That is because, unlike many other alternatives in the message queue space, Kafka focuses on being a high performance write log without strictly enforcing message receipt. In other words, Kafka is less of a traditional message queue and more like a distributed event emitter, which is great for cases where you may have dozens of different services looking at a particular message.

Practical Aspect Oriented Programming in JavaScript

January 05, 2021

Aspect oriented programming is a relatively new (early 2000s) design paradigm that makes code more modular by allowing you to add additional implicit behavior to existing functions in a controlled way. A more concrete example that Wikipedia uses

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

December 09, 2020

Mongoose 5.11.0 was released on November 30, 2020 and includes 17 new features, including 5 community contributions. The biggest


Sponsor The Code Barbarian on OpenCollective to get your company's logo above!