Erik Aybar

Posts Tagged "ES6+"

Using ES6 Promises Instead of Callbacks for Mongoose Queries

October 24, 2015

Mongoose queries traditionally follow the typical node.js callback pattern. Thanks to Mongoose 4.2+ and ES6 Promises (available in node…