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
3
votes
1 answer

How to trigger Parse.Cloud.afterSave on registers

I am looking for a way to trigger a Parse Cloud Job when a user register in my platform. This Job will set his role. Is it possible? I have try with this code but it is never triggered Parse.Cloud.afterSave(Parse.User, function(request) { …
3
votes
1 answer

How to configure a parse-server app to run Cloud Code on back4app

A brief and clear explanation of how we configure the app.js file and whether we need to require parse-server in it is needed basically. Which files should and shouldn't be related with each other? For example this is the main.js file where a simple…
3
votes
0 answers

Sending friend-request using firebase on Android

I'm migrating from Parse to Firebase. My sendRequest function does the following tasks (Assume user1 sends request to user2) -Check if the username exists -Check if user1 has not already sent a request to user2 -Check if user1 and user2 are not…
Zen
  • 2,698
  • 4
  • 28
  • 41
3
votes
5 answers

Cloud code functions are not executing with Parse server open source API

So here's my problem, we're developing a mobile app so 5 month ago when we began, we used Parse for our backend solution. Now Parse will die in a few month but luckily, we can still use Parse server by including their API. But after migrating our DB…
3
votes
2 answers

Logging Into Site Using Javascript HTTP Request?

I'm attempting to log into my nike account using http requests and parse. Here's my request: Parse.Cloud.httpRequest({ method: 'POST', headers: { 'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8' }, …
3
votes
1 answer

Parse Image + Parse httpRequest replacements — migrating from Parse Cloud Code to Parse Server on Node (Heroku / AWS / DO)

I found that when using the parse-node package, you can no longer use Parse.Cloud.httpRequest. I also know that Parse's Image object won't be available. So far, I've been able to replace some Parse promises with native ones and use axios to make…
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
3
votes
1 answer

I am trying to write a trigger in parse.com but some error

Parse.Cloud.afterSave("StatusTable", function(request) { var deviceName = request.object.get("deviceName"); var lastSeen = request.object.get("entryTime"); var sectionName = request.object.get("sectionName"); var…
Neeraj
  • 1,769
  • 3
  • 24
  • 41
3
votes
1 answer

How to manage recurring Event for All Timezone user For Specific local Day?

I am trying to develop a scheduler- and calendar-dependent event application for iOS. which use online database (parse Database) for store Event & users Detail. Detail: One user Create Events for specific day (i.e. every Monday for 5 week from…
3
votes
1 answer

How to run a Parse background job locally

I'm trying to run a Parse background job locally instead of the Parse cloud. And I need the Node SDK because the browser SDK doesn't support use of the master key which this job needs. Here is what I have tried in order to run the job locally : var…
deadbeef
  • 5,409
  • 2
  • 17
  • 47
3
votes
1 answer

Parse.com background job fail the service is currently unavailable

I am using Cloud Code to update all users, everyday. It used to work, but now getting error after 5 minute processing. "the service is currently unavailable" without any reason. I have checked status.parse.com and there is no relevant down. I have…
Emre
  • 295
  • 2
  • 9
3
votes
1 answer

Parse cloud code new SDK include subclass not working

I was using an old parse SDK version 1.5.0 and my function was returning with all the includes. Now I tried to use the latest SDK and the function is returning the main object only (on the gate and location I get "pointers" only.). Here is the…
3
votes
1 answer

Difference between Parse.Object.saveAll(objects) and Parse.Promise.when(promiseListOfSaves)

I've got a cloud code function which marks Notification objects as "read" and then queries the same class immediately for remaining "unread" objects. The problem is the most times, the same Notification objects I mark as read are returned in my…
3
votes
1 answer

Parse updating a set of objects

I have trouble updating a set of values in my cloud code. I have tried .save() seperately and .saveAll() but the class doesn't get updated in Parse and I get errors returned. What I am trying to do is to get all messages from class ChatMessages…
Paul Peelen
  • 10,073
  • 15
  • 85
  • 168
3
votes
0 answers

Result: v8 request size exceeds limits. Max allowed 1048576 current request is 1309246

Result: v8 request size exceeds limits. Max allowed 1048576 current request is 1309246. This is the result i get when i try to send 350kb file 3 times in Base64 format in one request to Parse Cloud Code function. What does it mean? Is it possible…
3
votes
1 answer

Accessing original field in Parse.com Cloud Code beforeSave function

The ultimate goal is to detect changes between an existing Parse object and the incoming update using the beforeSave function in Cloud Code. From the Cloud Code log available through parse.com, one can see the input to beforeSave contains a field…
marco alves
  • 1,707
  • 2
  • 18
  • 28