Simple: How to run a cloud function that returns a JSON? #164
-
I've done this a thousand times in JS, but for the life of me I CANNOT figure out what to declare the ReturnType of my ParseCloud struct so it accepts arbitrary JSONs return values. I need some sample code please. Closest example in the CloudCode playground pages is: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The problem I'm currently trying to solve is how I can get two objects from one cloud function which returns this JSON:
|
Beta Was this translation helpful? Give feedback.
so the cloud function works fine and returns this JSON?
what error are you specifically getting?
what is the struct of ParseObjectA and ParseObjectB?
seems to me you need to make a new struct that has those values.
which would be your ParseCloudable returnType for example:
if everything works ok, you should get back a
NewObject
object.