Learn JavaScript Promises (Pt 3) for sequential and parallel work in Cloud Functions - Firecasts

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

Promise.all is no longer HELL. Thank you for taking the trouble to make stuff like this so clear. Very appreciative.

lgopt
Автор

Thank you for giving such a free/great/quality video tutorial to our fellow developer :)

hakunamata_tuh
Автор

Excuse me sir, but how do you add a field of type object in the greater-boston document at 2:20 ?
I am trying to find such a field type but I can't!
Thank you!

stavroskefaleas
Автор

O.M.G. this is a true lifesaver!!! Thanks Doug!

jaebeombae
Автор

The code from the video doesn't work.

chimenkwok
Автор

Excellent explanation. Thank you. We really need async/await video now :D

SampathLokuge
Автор

3:45 instead of looping creating an empty array and push to it using a loop, you can use .map, which I think is more readable

leduyminh
Автор

Every time I see new content about Promises, I keep wondering why Observables don't get standardized faster :)

dsebastien
Автор

how can i create the cities which is an array of city ids ???? pls help.thank you

markdeanraymundo
Автор

What an amazing video!! Thanks Firebase

julianbenegas
Автор

One more thing I have been wondering about... At 5:33, should not that 'forEach'-loop be asynchronous? I am pretty new to this.

LOOTS
Автор

using typescript what is the type for the array promises, am having trouble pushing DocumentSnapshot request into an array.

nwankwochinonso
Автор

In the last promise, should not 'response.send(results)' be returned? Like 'return response.send(results)'?

LOOTS
Автор

Where can I find the source code for this tutorial??

KosratDAhmad-tiqy
Автор

So. What's this "Python pretty-printer" then, and how can I get it?! 🙂

karolinahagegard
Автор

Excellent Videos!! What do you do if you have millions of promises to return from the database?

TheRedCamaro
Автор

For me, the part

is creating a problem for me.
Basically the {city} is considered as a part of the whole string and hence the city variable which was declared is not used in the loop.
This creates an error and how do I fix this issue? So that $(city} is actually read as a separate value from the string?

Ps- I’ve named the collection as city weather and not cities weather so I think that cannot be an issue

rishipandya
Автор

src/index.ts:10:22 - error TS2532: Object is possibly 'undefined'.

10 const cities = areaSnapshot.data().cities


src/index.ts:19:13 - error TS7034: Variable 'results' implicitly has type 'any[]' in some locations where its type cannot be determined.

19 const results = []


src/index.ts:24:21 - error TS7005: Variable 'results' implicitly has an 'any[]' type.

24 response.send(results)


I can't find what is wrong.. somebody helps me.

띠용-ljr
Автор

Can this (promises) be used with the RealTime Database or only with Cloud Firestore?

davidr
Автор

Can I follow the same principle if the promises are from different functions (push & remove). For example, I have to push X number of data from node Y into
node Z and then remove the original node Y.

I am trying, but like you said, I am getting weird results. Promises are promises, I should be able to I think. I'm gonna keep trying.

caiomar