Paul BreslinBlockedUnblockFollowFollowingCreator of Vocabify. Plays pool. Eats burgers. Types code. Enjoys every minute of it :) https://vocabifyapp.comJul 5, 2017Not pretty. This is also known as the “pyramid of doom” (and we haven’t even added error handlers yet).How to write beautiful Node.js APIs using async/await and the Firebase DatabasePaul Breslin1.5K10Update: it was pointed out by benjick on Reddit that it’s possible to flatten promise chains. See here for more info. Thanks for the feedback!