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

edit parse user information when logged in as other user in android

I am using parse.com in my android application.when i visit other user's profile , i am able to follow that user but when i follow him value in following column of current logged in user's object is updated, but at the same time the user's value…
Mansuu....
  • 1,206
  • 14
  • 27
3
votes
0 answers

TypeError: Object [object Object] has no method 'apply' with Parse Cloud Code

Strange Parse error: Input: {} Failed with: TypeError: Object [object Object] has no method 'apply' at e (Parse.js:2:6486) at Parse.js:2:5935 at Array.forEach (native) at Object.x.each.x.forEach [as _arrayEach] (Parse.js:1:664) …
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
3
votes
1 answer

Parse "parse new " not working

I have just downloaded the ParseConsole.exe run it. I already have an app in my account in parse.com. The problem is that when I run the command "parse new" in the ParseConsole and log in the ParseConsole only shows me "1: results" instead os my…
Pedro
  • 31
  • 2
3
votes
1 answer

How to download a file using Parse.Cloud.httpRequest for content type zip

I wanted to create a scheduled Parse job to download a zip file. I tried it with Parse.Cloud.httpRequest(), but it seems like it works only for json and url encoded content type. How exactly can I get this done from cloud…
sudheeshcm
  • 3,310
  • 4
  • 14
  • 21
3
votes
1 answer

Where to declare response.success()/response.error() in my cloud code

Hi while I run this Job in Cloud code I get an error log: Failed with: success/error was not called. Define functions working good, but in Job logs I have this error log. Please assist me to solve the issue Parse.Cloud.job("JobSchedule",…
Anbarasi
  • 421
  • 2
  • 5
  • 23
3
votes
1 answer

How to install Parse CloudCode in windows7 32bit?

we are developing android app using parse CloudCode,we unable install CloudCode setup in windows7 32bit using Cygwin terminal getting error at installer.sh command line Please guide us,where we are doing mistake..! We followed this video In this…
3
votes
1 answer

Parse Cloud Code callback not working

I am building an app with friends relations using Parse Cloud Code. When Alice sends Bob a friend request, it is a notification of type 71. When Bob answers he sends a notification of type 8. On the server, when a type 8 notification is sent,…
Quentin Malgaud
  • 405
  • 6
  • 21
3
votes
1 answer

Can't fetch parse file from PFObject

Trying to fetch a PFfile from PfObject but when I fetch value of a particular key , it only gives me a class name Here is my CloudCode Parse.Cloud.define("fetchBusinessWithID", function(request, response) { var query = new…
Vikas
  • 914
  • 7
  • 19
3
votes
0 answers

Parse.com adding node.js modules to Cloud

I'm trying to add gm module to my cloud. Since parse is not a node.js environment I made small changes over other modules I used, but gm module requires so much node core module. Do I have to push all of the sub modules to parse. Also how can I add…
Thellimist
  • 3,757
  • 5
  • 31
  • 49
3
votes
1 answer

beforeSave causes Queries to return nothing

I have a cloud function that takes in a request and creates objects as well as associates them in a chain of promises. Without a beforeSave this function works fine but the beforeSave exists to prevent duplicate entries of email addresses in the…
mcclaskiem
  • 394
  • 1
  • 15
3
votes
2 answers

How can I make require() use node_modules in Parse Cloud Code?

I can happily upload npm module source, but if I try to require('foo') then it ignores the node_modules directory, unless I exactly specify require('./node_modules/foo/index.js'). How can I work around this to use npm modules on parse?
Paul Tarjan
  • 48,968
  • 59
  • 172
  • 213
3
votes
1 answer

Retrieving a users password in Cloud Code

Is it possible to retrieve a users password in Cloud Code by using myUser.get("password")? I'm even using the master key and I still can't retrieve it. Update: PFCloud.callFunctionInBackground("updateUser", withParameters: ["username" : username,…
nick9999
  • 601
  • 1
  • 8
  • 22
3
votes
2 answers

Is it possible to clone existing cloud code already deployed on server side, through the Parse command line tool?

How can I clone an existing Parse Cloud Project files to my computer with the command line tool? I tried parse new and selected a project but it created a folder with new files, not the files that I already had in the Parse Cloud. Note: I did not…
3
votes
1 answer

Parse.Cloud.HttpRequest host

I am creating a whitelist for google APIs and need the host for Parse.Cloud.HttpRequest because I am running it in cloud code. I tried *parse.com* but that is apparently not where the cloud request comes from. What is the host for…
Ero
  • 491
  • 1
  • 3
  • 15
3
votes
1 answer

Saving or updating ParseUser in cloud code

I am getting the error response as "user objects cannot allow writes from other users" when trying to signUp or update a ParseUser in cloud code. As specified by the Parse team I am using Parse.Cloud.useMasterKey() so that I can bypass the…
XCEPTION
  • 1,671
  • 1
  • 18
  • 38