1 min readJun 8, 2020
Hi Samuel. If I understand correctly, you are trying to get the list of names and then possibly loop through them? If this is the case, store the names in an array and use the map method of the array to then perform the reading.
However, this will be easier to manage if you convert the promise based call to async/await. This can be tricky in a map.
Here is an article that might help.