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

Success / Error not called

Im new to javascript, but I'm not quite sure how I'm missing a Success / Error call, I looked through and it looks all called to me. Parse.Cloud.job("UpdateWeekData", function(request, response) { var weeks = []; var weekCount = 0; var weekQuery =…
trever
  • 961
  • 2
  • 9
  • 28
-1
votes
1 answer

Javascript TypeError: Cannot call method 'slice' of undefined

I'm currently learning javascript for a simple Parse CloudCode script I'd like to write. Unfortunately I'm getting the error posted below which seems to be quite common, unfortunately my lack of skills in this area aren't allowing me to fix the…
donkey
  • 1,343
  • 13
  • 32
-1
votes
2 answers

Unit tests for Parse Cloud Code?

I have an application which uses Cloud Code as backend. Is there any way to write unit tests for Parse Cloud Code?
Msp
  • 2,493
  • 2
  • 20
  • 34
-1
votes
2 answers

Parse CloudCode beforeSave object does not have objectID

I am trying to send a push to a user from Parse Cloud Code every time a new object is created of a certain class, but in the push i need to send the objectId to the user, but it is always null. So is the objectId available in beforeSave when a new…
Miguel Carvajal
  • 1,785
  • 19
  • 23
-1
votes
2 answers

Parse TypeError cannot read property 'entry' of undefined at main.js at 39:27

I have a swift project in which i want use push notifications. I tried use parse server using a job schedule with .js files. The problem is that when i run the job on job status window i get this error: "TypeError cannot read property 'entry' of…
Swift1
  • 349
  • 1
  • 4
  • 22
-1
votes
1 answer

Parse Cloud Code User Validation

I want to validate an iOS user calling a Cloud Code function. Parse.Cloud.define("sayMyName", function(request, response) { var user = request.user; console.log(user); response.success("Your name is: " + user.get("name")); )}; However this…
Eric Johnson
  • 1,087
  • 1
  • 11
  • 16
-1
votes
1 answer

What is the purpose of cloud code on Parse when working with a database?

So my android app is successfully able to add data to the parse database but I am being prompted to deploy some cloud code to start scheduling jobs on my data. I can query the db effectively from the app through the parse api and so I am very…
-1
votes
1 answer

How to get all datas of an class in Parse with Cloud Coding?

I have a sample GameScore class in Parse and i want to get all datas from this class with cloud coding. I suppose i missed something. My code is below. var GameScore = Parse.Object.extend("GameScore"); var query = new Parse.Query(GameScore); …
Emre BEGEN
  • 577
  • 1
  • 7
  • 17
-1
votes
1 answer

How to know how long it take for my background job to run from start to finish?

Is there any way I can view my background job start and finish time on Parse Data Browser?
LKH
  • 287
  • 2
  • 3
  • 11
-1
votes
2 answers

Parse.com success/error not called I'm calling succcess/error exactly once but it's not working

I'm trying to get this cloud code function working but I keep getting the following error: code: 141, message: "success/error was not called" I'm definitely passing in the correct request object so that is not an issue. Everything should save…
rashadb
  • 2,515
  • 4
  • 32
  • 57
-1
votes
2 answers

Cloud Code vs. Express

I need to use a server for portions of my app. Since I'm using Express for this what is the benefit for using Cloud Code for aspects of my app that could be hosted on the server or in Parse Cloud Code?
rashadb
  • 2,515
  • 4
  • 32
  • 57
-1
votes
1 answer

PFCloud callFunctionInBackground:withParameter:block: return value

In have a problem to Change CalUsed value I want to put Data in NSNumber *CalUsed1 to CalUsed for use in other function @property (nonatomic, assign) NSNumber *CalUsed; - (void) GetCalUsed{ PFUser *user = [PFUser currentUser]; [PFCloud…
bosz.KCH
  • 15
  • 5
-1
votes
2 answers

How can I use Parse to send data to specific user

I'm creating an online game which have to send data between users. I chose Parse as the backend service. How can I use Parse to do this task?
maou
  • 23
  • 5
-1
votes
1 answer

javascript variables not getting passed to function

For some reason on line 54(which is starred out************) an error is popping up saying cannot call 'push' of undefined. My 'randUsers' array which is supposed to initially be empty is not getting passed properly. Why isn't randUsers getting…
ian
  • 1,002
  • 2
  • 12
  • 29
-1
votes
1 answer

get array of unique objects from json javascript

{"result":[[{"Image":{"__type":"File","name":"tfss-772aedb6-2767-4935-88f8-ae9280bc512b-expendables.jpg","url":"http://f iles.parsetfss.com/49a11e0f-0c84-417e-b81b-58f5e97abae9/tfss-772aedb6-2767-4935-88f8-ae9280bc512b-expendables.jpg"},"Tit le":"The…
1 2 3
74
75