bazaglia
07/13/2018, 7:58 PMbrandon
07/13/2018, 8:57 PMconst promises = dogs.map(data => storeDog(data, ctx));
// Waits for all of the queries to finish and stores it to a variable that gets passed out of our API
dogsWithIds = await Promise.all(promises);
and it creates multiple dogs at once in parallel.