Skip to content Skip to sidebar Skip to footer

Generating And Saving A List Of ParseObjects Within A Parse.Cloud.httpRequest In A Cloud Function

So, I'm defining a cloud function that's supposed to make a call to the foursquare api and generate a list of restaurants (each restaurant is a ParseObject) from the returned JSON.

Solution 1:

I believe your issue is that you aren't returning the Promise from Parse.Object.saveAll(restaurants) when your httpRequest() is complete. Try returning that saveAll() promise and see if it completes.


Post a Comment for "Generating And Saving A List Of ParseObjects Within A Parse.Cloud.httpRequest In A Cloud Function"