Questions tagged [parse-cloud-code]

This code runs in the Parse Cloud rather than running on a mobile device. For complex apps, sometimes developers just need a bit of logic that isn't running on a mobile device. Cloud Code makes this possible.

The Parse Platform's vision is to let developers build any mobile app without dealing with servers. For complex apps, sometimes developers just need a bit of logic that isn't running on a mobile device. Cloud Code makes this possible.

Cloud Code is easy to use because it's built on the same JavaScript SDK that powers thousands of apps. The only difference is that this code runs in on a Parse Server rather than running on a mobile device. When developers update their Cloud Code, it becomes available to all mobile environments instantly. They don't have to wait for a new release of their application. This lets developers change app behavior on the fly and add new features faster.

1120 questions
4
votes
2 answers

Update Stripe module at Parse Cloud Code

Turns out that Stripe module at Parse Could Code is out of date and won't be updated. Source: https://developers.facebook.com/bugs/523104684492016/ Parse modules are using an old version of the API and there is no plan to update it in the near…
4
votes
2 answers

automatically updating data using cloud code in Parse.com

I'm looking a method to automatically updating data using cloud code. Let say I have a class Table. inside of it, I have three column : firstname, lastname, and fullname. Currently, I only have firstname and lastname data only. Column fullname is…
Gibran
  • 934
  • 2
  • 8
  • 19
4
votes
0 answers

Automatically export Parse data?

So we all know that we can manually export a Parse class by pressing the button in the data browser but is there some JavaScript code that can be used to make a Cloud Function/Job that export's the data for us?
nick9999
  • 601
  • 1
  • 8
  • 22
4
votes
1 answer

Parse cloud code login signup example

I have searched for a lot of tutorials to find actual cloud code functions for a user login signup with username as my email, in Parse. I only have an overall idea about how to get through Parse. But examples are scarce. Kindly share with me some…
sharath
  • 521
  • 1
  • 4
  • 18
4
votes
1 answer

Parse deploy of cloud code failing with message "Update failed with internal error"

I've been running Parse cloud code for a few months using CLI version 1.4.1 with no problems. I just updated using the CLI to the latest version, 1.4.2, but now when I deploy I get this output: Uploading source files Finished uploading files Update…
Ben Wheeler
  • 6,788
  • 2
  • 45
  • 55
4
votes
2 answers

How to deploy nodejs & express to parse.com?

I've developed a web app on nodejs with express as framework and jade as templating engine with the aim to deploy it to parse.com. Everything worked great locally, but now I would like to deploy the current release. But the parse command line tool…
cansik
  • 1,924
  • 4
  • 19
  • 39
4
votes
1 answer

How to access Facebook Graph API in Parse Cloud Code?

I need to get friends of a user that logged in with Facebook at my Parse app, inside a cloud function. How can I achieve this? I've tried to install facebook-node-sdk (https://github.com/Thuzi/facebook-node-sdk/), but even though I've copied all the…
4
votes
3 answers

How to create an object of specific type from JSON in Parse

I have a Cloud Code script that pulls some JSON from a service. That JSON includes an array of objects. I want to save those to Parse, but using a specific Parse class. How can I do it? Here's my code. Parse.Cloud.httpRequest({ url:…
TotoroTotoro
  • 17,524
  • 4
  • 45
  • 76
4
votes
1 answer

Parse cloud query to get object with closest GeoPoint

I am having issues writing a Parse query to get a Parse object with a GeoPoint that is CLOSEST to the inputted GeoPoint. Currently, the code appears to be returning the most recently created object. Code: // check Parse for infections around passed…
Andrew Robinson
  • 3,404
  • 3
  • 20
  • 26
4
votes
2 answers

request.user is NULL in afterSave after signup?

A have an iOS app where a user (anonymous at first, as I am using enableAutomaticUser) calls signUpInBackgroundWithBlock which returns succeeded = YES. The new, now non-anonymous user creates an object and afterSave() is called in cloud code. If I…
blushmessenger
  • 316
  • 3
  • 5
3
votes
1 answer

parse server cloud code aftersave trigger

Is the aftersave function in the cloud code called every-time an object of a specific class is updated or is it called only after an object of the class is created ?
3
votes
1 answer

How do I correctly use Parse.Roles relationships for multiple Parse.Objects and Users over time?

Most of the following is done with the parse-dashboard so it's a bit wordy, but I understand the code just not the relationships. I'm setting Parse.Roles and it seems like each individual Parse.Object needs to have the Role set to have access to a…
3
votes
1 answer

Parse Cloud Code Function Response Success is not a function

I'm trying to call a Parse Cloud Function from an iOS client but the response.success() function seems to be null. I am getting an error saying that response.success is not a function on the server. This is my Parse Cloud…
srdzdv
  • 35
  • 1
  • 5
3
votes
2 answers

Parse Server - How to delete image file from the server using cloud code

How can I delete an image's file from the server using Parse Cloud Code. I am using back4app.com After Deleting Image Row I am getting the images urls, then calling a function to delete the image using its url Parse.Cloud.afterDelete("Image",…
Hatim
  • 1,516
  • 1
  • 18
  • 30
3
votes
2 answers

Debugging Parse Cloud-Code

What would be the best way to debug Parse Cloud Code? Currently it's a mess of logging to the console and checking logs. Does anyone have a good workable solution?
stuart
  • 425
  • 6
  • 19