     promisesArray.push(promise) } return Promise.all(promisesArray)     .then((snapshotContainsArrayOfSnapshots) => {         let data = []         snapshotContainsArrayOfSnapshots.forEach((snapshot) => {             data.push(snapshot.val())         })         return JSON.stringify(data)     })