Assuming that I have the references of 4 documents, as follow:
users/user1/
preferences/user1
featureflags/user1
user_info/user1
how do I read all 4 documents in Firestore in a single request?
I tried with Promise.all as follow:
Promise.all([
getUserInfo(user_id),
getPreferences(user_id),
getFeatureFlag(user_id),
getUsers(user_id)
]
).then(function (ans) {
//stuff
})
However, is there a better way?