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

Parse Cloud Code File Request Fail

I'm having some issues trying to request an image file from Cloud Clode in Parse. This is my Parse Cloud Code: Parse.Cloud.define("datata", function(request, response) { //var message = request.params.message; var file =…
0
votes
1 answer

Parse.com reducing high volume of request

I have just transferred my app from a MySQL solution to parse.com, and are happy so far, but... I am constantly trying to find ways to improve the performance and have a question. If I have a function in my app in which I have to request parse.com 3…
Mansa
  • 2,277
  • 10
  • 37
  • 67
0
votes
1 answer

A solution for my issue with sending some info from an array to Parse

I am making an e-commerce app and trying to deal with the backend stuff so the shop owner can see what a user ordered. I am going to use Stripe + Parse for this. In my Payment View Controller I use fast enumeration to go through my array and get…
0
votes
1 answer

Parse.com create stripe card token in cloud code (main.js)

I am looking to create stripe token in parse cloud code.. I dont want to create token in client side HTML page. My complete web application is in HTML + Javascript so dont want to expose my Stripe.setPublishableKey('pk_test_xxxxxxx'); Because of…
0
votes
1 answer

How to define an array of promises and get an array of results using Parse.promise javascript [parse.com]

I'm trying to get an array of results from an array of promises. I'm able to define the array of promises by i'm not getting the array of results Below is my code function get_order_selection(order){ var itemList=[]; var promise =…
Ng Zhong Qin
  • 1,211
  • 2
  • 15
  • 28
0
votes
1 answer

Parse.com Cloud Code afterSave( ) Error: "Uncaught Tried to save an object with a pointer to a new, unsaved object."

Context I am using Parse.com after my backend for a web application. The problem I am having relates to Cloud Code. After a user completes their profile, I want to call an afterSave( ) function which updates a few fields in the dataset…
Jesse
  • 447
  • 2
  • 8
  • 18
0
votes
1 answer

Parse Push Notification Not Firing On Time

In my application the user creates an alarm which uploads an object to parse as well as schedules a push notification for the time that they select. I had it working yesterday but for some reason today, right after the user creates the alarm the…
0
votes
1 answer

Parse Cloud Code getting Error Failed with: TypeError: Object 0 has no method 'set'

Im using Cloud Code for my Android App. After saving a Value to a Parse Class I want to Update a field (credits) from my Users. var query = new Parse.Query(Parse.User); query.equalTo("householdOf", request.params.household); query.find({ success:…
David198
  • 25
  • 7
0
votes
1 answer

CreateAndSendInvoice using PayPal from Parse.com Cloud Code

I've been trying to create and send invoice using Paypal from Parse.com Cloud Code. Below is my code. I've been getting this error Request failed with response code 0 Parse.Cloud.define("send_paypal_invoice", function(request, response){ var…
0
votes
1 answer

Transferring Facebook session object between platforms

While awaiting a response to my question here, the gist of which is: I want to start Facebook login on my iOS app I want to continue on Parse.com CloudCode where I can write to non-authenticated PFUser using MasterKey() so I can link the PFUser to…
artooras
  • 6,315
  • 9
  • 45
  • 78
0
votes
1 answer

parse.com afterDelete trigger doesn't work completely

I have a Parse class Comment. Each Comment is submitted by a ParseUser and I wanna track in my parse user how many comments he has submitted, so I've created the following triggers in Parse Cloud Code: /* * ------------- AFTER…
giacavicchioli
  • 334
  • 2
  • 14
0
votes
1 answer

How many API Request is considered by Parse.com?

I have a cloud code written Parse.Cloud.define("getApartmentVendorProduct", function(request, response) { var isApartmentCallComplete = false; var isVendorCallComplete = false; var isProductCallComplete = false; var result = {}; var…
Kavin Varnan
  • 1,989
  • 18
  • 23
0
votes
2 answers

error = "TypeError: Object [object Object] has no method 'addUnique'\n at main.js:33:12"; Cloud code parse.com

I'm sure the answer to this one is quite simple but I couldn't figure it out... Here is my code in Cloud Code: Parse.Cloud.define("acceptFriendRequest", function(request, response) { Parse.Cloud.useMasterKey(); var query = new…
jacobsieradzki
  • 1,108
  • 2
  • 10
  • 32
0
votes
4 answers

Checking if object is Array in Parse.com CloudCode

I have this code running on Parse.com CloudCode queryContact.find().then(function(results) { console.log(typeof results); // object if (results.constructor !== Array) { response.success("Found zero results"); } else { …
artooras
  • 6,315
  • 9
  • 45
  • 78
0
votes
0 answers

Parse Cloud Code Promises

This is my code, and i always get "Success/error was not called" but i expected the end of my code waiting until ALL promises are resolved or rejected? Am i right? SHORT Example how my code looks like (scroll a little bit more, for full code): var…
fr3ddyf
  • 73
  • 8