Problem This script takes input from poker tournament pages at pokeratlas dot com, and outputs a CSV file that I […]
Tag: promise
Promises in mongoose
Problem I’ve implemented a promises in mongoose to reduce the amount of callback hell but I am not sure whether […]
Caching/memoizing promise results
Problem I’m wondering what the best approach might be. One approach is to chain cachedPromise and “regular”, thus, if cachedPromise […]
Using await to break long-running processes
Problem I have a Node.js app / Web API that runs on an Azure app service with a single CPU. […]
Reading the contents at three URLs using Promises
Problem I’m learning promises and now I’m trying to figure out if something in this code can be improved. This […]
Pyramidal promises
Problem I have a situation in my Node (express) controller where I need to check whether a particular language has […]
Processing a list of pairs of items using promises and functional programming
Problem I posted an answer on StackOverflow which I believed to be adherent to the principles of Functional Programming. However, […]
Mongoose: find() and count() query
Problem Background I have a query in Mongoose that finds a set of objects, and then returns these said objects […]
Making JSON requests to fetch relationships asynchronously
Problem I would like to refactor the fetchRelationships function to use async await. I am not sure what the best […]
Node.js Sequelize Promise
Problem I am working on sending a reset token via email to a potential user in Node.js, Sequelize, and Express. […]