Using Promises, async / await with MongoDB

How to handle API requests with a chain of MongoDB queries

Ross Bulat

--

You are writing a backend service for your web app and you need to fetch data from your mongo cluster. The problem is, you do not want your request to be returned in a synchronous manner — instead I want mongo queries to be carried out, get the returned result, handle it and return the JSON to…

--

--

Ross Bulat

Programmer and Author. @ Parity Technologies, JKRB Investments