-
-
Notifications
You must be signed in to change notification settings - Fork 206
Issue with Cloud function which returns list of custom object #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you try it? |
Yes :
|
Umm, and response["title"]? I think the problem is how to get the value from the _InternalLinkedHashMap. |
I can't do response["title"] because response is a ParseResponse object |
Im doing this and its working for me, hope it can help. js cloud code:
|
Mmm, I think there is no problem when you return a simple object like String, but when you try to return complex custom object, it fails. Try to return a custom object instead string and tell me what happens please. |
I confirm what I said before @pcegarra |
This wouldn't be the work of the library. A cloud function can return any type of data, not just ParseObjects. To do this a custom JSON parser would need to be created to handle the data manually. |
Hi, I have a problem with Cloud Function.
When for exemple, I made this sample from the example in the lib :
I have this payload (with debug print, and it prints correctly the title of my test object in DB)
But when I tried to retrieve it with Cloud Function, like this :
The payload is different from the first payload
And when I try to print the title of my test object like before (before, it works well), it doesn't work and I have this error :
The text was updated successfully, but these errors were encountered: