Simple: How to run a cloud function that returns a JSON? #164
Answered
by
jaysonng
pktealshift
asked this question in
Q&A
-
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.
Answered by
jaysonng
Mar 22, 2024
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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.