-
-
Notifications
You must be signed in to change notification settings - Fork 206
[Question] Parameters in cloud code function call? #34
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
I would imagine you simple extend the ParseFunction as you would a ParseObject. Very similar to how the DietPlan extends ParseObject, but implements a variable called name. |
An idea for next update : In lib/src/objects/parse_function.dart
Sample example, main.dart :
|
Do you think you will implement "my" idea ? (For information, we can do the same with android/iOS SDK : https://docs.parseplatform.org/android/guide/#use-cloud-code )
I think i'm not the only one who need it a lot and it will be a good idea for a lot of people. |
I'm interested in this feature, but I really don't know when I'm going to
get a chance to implement it. I'm currently in the process of writing a
separate app which required Parse as a DB and ended up writing this library
due to it not being available.
If your interested, I could get you started on developing this feature
within the library? I don't currently have any cloud code to test against
so it would take me a while to implement.
…On Mon, 21 Jan 2019 at 14:11, ScanEat ***@***.***> wrote:
Do you think you will implement "my" idea ? (For information, we can do
the same with android/iOS SDK :
https://docs.parseplatform.org/android/guide/#use-cloud-code )
HashMap<String, String> params = new HashMap();
params.put("movie", "The Matrix");
ParseCloud.callFunctionInBackground("averageStars", params, new FunctionCallback<Float>() {
@OverRide
public void done(Float aFloat, ParseException e) {
if (e == null) {
// ratings is 4.5
}
}
});
I think i'm not the only one who need it a lot and it will be a good idea
for a lot of people.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3oUBD6epptgprhCeIeRzDj4lBl-mks5vFcqggaJpZM4Z-bne>
.
--
Kind Regards
Phill Wiggins
[email protected]
|
Added in v1.0.10 |
Hi,
Like they show in the REST API Guide (https://docs.parseplatform.org/rest/guide/#cloud-code), is it possible to send parameters to the cloud code ?
For example:
{"plan":"paid"}
The text was updated successfully, but these errors were encountered: