Joined December 2015
·

Eliseu Martinho

Full Stack Engineer at Easy Easy Apps
·
Lisbon
·
·

Hi there.
I ran across the very same problem on a recent project of mine. I used each instead to iterate over the collection and fetch every element of the relation. If the callback function returns a promise, each will not move onto the next element of the list, until the promise is fulfilled. https://parse.com/docs/js/api/classes/Parse.Query.html#methods_each. With this I was sure that I could get to every element of the collection. This is just an alternative and didn't need to use underscore. You can see the snippet here: https://gist.github.com/orangeeli/5995edf466c3de650319.

Great write up. Cheers.

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills