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
32
votes
2 answers

How to save batch of data in Parse Cloud Code?

In my cloud code, I would like to update all of my record which is around 50k with a new data. But I noticed that my job fails even though I follow 1000 records limit. I get success/error was not called error for this job. Any Idea how can I resolve…
Soheil
  • 5,054
  • 3
  • 24
  • 43
16
votes
4 answers

Query on pointer in parse.com Objects in Javascript

I have a Class of Company which has User pointers. The query I want on Company class is like this: Retrieve Company rows where User object has a name equal to 'ABC' So, how should I form this query ? var Company = Parse.Object.extend("Company"); var…
Y M
  • 2,105
  • 1
  • 22
  • 44
15
votes
3 answers

How to pass extra data down a Parse Promise chain

In my Parse Cloude code I need to run a few successive queries, each of them using a "find()". Example: var promise = firstQuery.get(objectId).then(function(result1){ return secondQuery.find(); }).then(function(result2){ …
Joris Mans
  • 6,024
  • 6
  • 42
  • 69
14
votes
2 answers

Parse.com cloud code downloading binary

I'm using Parse.com and cloud code for some server side javascript functions on my website. I usually deploy updates to cloud code through parse deploy in the mac terminal. Today when I have tried to do this it has come up with: Downloading binary…
bwash70
  • 1,135
  • 2
  • 11
  • 24
11
votes
1 answer

CloudCode multiple query in query doesn't work

I'm trying to find users I didn't connect to before with a cloud function. There are few tables I'm using: Users table - The standard table with an added "hasLight" boolean column Connected table: 'user' - pointer to the user (first…
Idan
  • 9,880
  • 10
  • 47
  • 76
9
votes
2 answers

Parse.com CloudCode deploy failing - requested resource was not found

I am using Parse.com CloudCode to create some custom functionality for an iOS app. To deploy a CloudCode app you use: terminal% parse deploy Everything was working fine and I was able to upload my cloud code to the backend but suddenly it stopped…
cashmash
  • 425
  • 4
  • 10
9
votes
3 answers

Parse Cloud Code Structure

I'm using Parse Cloud Code for a social mobile application. I want to make the cloud code scalable but Parse has some rules which I must obey. The structure is like: cloud/ main.js other.js otherfile/ someother.js ... …
Thellimist
  • 3,757
  • 5
  • 31
  • 49
9
votes
3 answers

can not update my collection from parse cloud?

I am facing an issue in parse cloud code. The following is updating score and change date in my gamescore table. But it is not working. while I am doing same in my web code and it is working fine. Am I doing anything wrong here ? 'use strict'; var…
Kundu
  • 3,944
  • 3
  • 16
  • 21
8
votes
2 answers

Using Cloud Code with the Parse Server and Heroku

I am trying to understand the new Parse Server and have deployed on Heroku. This went smoothly but what I am struggling with is figuring out how to write server side code (Cloud Code). I've read over the parse server example many times so I must be…
01Riv
  • 1,444
  • 1
  • 13
  • 28
8
votes
2 answers

Parse-server cloud code function 'Cannot POST'

Most parts of my migration to open source parse-server are successful, with my data correctly stored, accessible. I am however having problems with cloud code, specifically with running simple curl tests. The initial parse-server installation…
Rocket Garden
  • 1,166
  • 11
  • 26
8
votes
2 answers

Does Parse.com Cloud Code Have etag support?

Does Parse.com support the use of etags and if-none-match for Conditional GETs? I'm working with a third party API that requires this as a must, to limit API calls to their server. Im using Cloud Code as my backend sending data to a Cordova/ionic…
garrettmac
  • 8,417
  • 3
  • 41
  • 60
8
votes
1 answer

Parse request.object.get("KEY") always returns undefined

I have a strange problem over here. I have a project built with Parse.com as a backend (using cloudcode to verify some things when a connection to the database is made). Everything works just as it should do. But here comes the problem. Another…
eschanet
  • 1,063
  • 6
  • 15
8
votes
2 answers

Parse Cloud Code retrieving a user with objectId

I am trying to get the user object from objectId. I know the objectId is valid. But I can get this simple query to work. What is wrong with it? user is still undefined after the query. var getUserObject = function(userId){ …
Ben
  • 99
  • 2
  • 7
7
votes
2 answers

Parse Cloud - LiveQueries - iOS Client doesn't work

I'm trying to use Parse LiveQueries. I use this Parse "Bootstrap": "https://github.com/parse-community/parse-server", I can see the logs: info: Create new client: 1, but I just do not get the update in the query although I have subscribed it. It…
Etgar
  • 5,774
  • 2
  • 16
  • 30
7
votes
1 answer

From Cloud Code, how can I query for Installations matching a set of Users?

I'm using a standalone Parse server, trying to send a push notification to multiple Installations. Parse Server won't let me query the Installation collection from Cloud Code, returning the following error: Error handling request: ParseError { …
Gabriel Bauman
  • 2,270
  • 1
  • 22
  • 36
1
2 3
74 75