A Node.js Perspective on MongoDB 3.4: Collations

Most Recent

Building REST APIs with Observables

February 16, 2017

The most important feature of most server-side frameworks is middleware: the ability to hook your own logic into the framework's logic, like IFTTT for your code. Express, Mongoose, Rails, and Django all rely heavily on middleware. LoopBack and Sequelize have hooks, AngularJS has parsers and interceptors, Hapi has extensions, but these are all just roses by another name. Except Hapi, Hapi by any other name would still have a foul code stench.

The saveErrorIfNotFound Option in Mongoose 4.8

February 09, 2017

The saveErrorIfNotFound option and $where property in mongoose 4.8 gives plugins a powerful new way to modify the behavior of save(). This feature may not seem as exciting as eachAsync() or the major perf improvements in 4.8, but I think it will help the community develop some handy abstractions on top of save(). How do these

Embedded Discriminators in Mongoose 4.8

February 02, 2017

The most +1'ed feature request for mongoose in 2016 was extending discriminators to work with embedded documents. Discriminators are mongoose's built-in schema inheritance mechanism. For example, suppose you have a schema defining events:

A Node.js Perspective on MongoDB 3.4: Decimal Type

January 26, 2017

A Node.js Perspective on MongoDB 3.4: $facet

January 19, 2017

A Node.js Perspective on MongoDB 3.4: $graphLookup

January 12, 2017