Wrangling GeoJSON with Turf.js

Most Recent

Managing Embedded Documents with Monogram

November 24, 2017

Monogram has a powerful middleware system that makes cross-cutting concerns easy. One use case is denormalization, the practice of storing all or part of one document in another document. Denormalization is a powerful paradigm for both performance and data integrity. When done well, denormalization means you only need one query to fetch all necessary data, rather than using joins or $lookup stages that may require their own indexes.

What's New In Mongoose 4.13: Aggregation Middleware

November 17, 2017

Mongoose 4.13 was released a couple weeks ago, with support for a powerful new feature: middleware for aggregation. The primary motivation for this feature was to enable plugins like mongoose-explain to work with aggregate(), as well as enabling us to refactor discriminators to be a plugin. Aggregation middleware is a natural complement to query middleware, it lets you apply a lot of the use cases for hooks like pre('find') and post('updateOne') to aggregation. In this article, I'll demonstrate using aggregation middleware to enforce soft deletes, and explain how aggregation middleware works with aggregation cursors.

What's New In Mongoose 4.13: Dynamic Refs and Fields for Virtual Populate

November 09, 2017

Mongoose 4.13 was released last week. As usual, its packed with powerful new features. The most exciting new feature is the ability to set localField, foreignField, and ref dynamically for virtual populate. The syntax for virtual populate's dynamic properties is slightly different than the one for conventional populate, but we think this new syntax is much more powerful.

Mutual Exclusion Patterns with Node.js Promises

November 02, 2017

One of the most compelling reasons for async/await is the fact that async functions generally feel like simplified threads, or threads with predictable interrupts. There are numerous

What's New in Mongoose 4.12: Errors for Custom Query Functions

October 25, 2017

What's New in Mongoose 4.12: Improved Connection Events

October 17, 2017