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

Multiple Parse.Cloud.httpRequest in Parse.Cloud.job

I need to implement the following in my Parse.Cloud.Job: Get all objects from my Parse.com class Make Parse.Cloud.httpRequest using values of each one of the objects from my Parse.com class Process Parse.Cloud.httpRequest response and save it to…
Danny
  • 682
  • 1
  • 11
  • 21
2
votes
1 answer

using parse cloud function

ok, im trying to make a average for the objects related with the user, realize the operations and return the results in a parse object of the same class. i dont know if this is correct. this is the parse cloud code: Parse.Cloud.define("Stats",…
2
votes
2 answers

Swift/Stripe error communicating with the Parse Cloud Code

I have been working for days trying to figure out how to charge a card and save the card to a customer with Stripe using Swift, with Parse.com Cloud Code as the backend. I integrated the Stripe pod with my project successfully, and I have a token…
2
votes
2 answers

Issue/Bug when creating new Parse app in Cloud Code

I am trying to create a new application in Parse Cloud Code. According to instructions I have to create an app in Parse.com then run the following command: parse new [application name] so I created a new app called ABCDE (example name) and…
Aidin
  • 2,134
  • 22
  • 26
2
votes
2 answers

Multiple Queries with Parse Cloud Code Using Promises

I have two questions: Is the below example the right way to execute multiple Parse queries in a single Cloud Code function? Is the below example going to provide all the data I'm querying with one HTTP request (when I call logbookEntries) and then…
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
2
votes
1 answer

Parse.com check friendRequest duplication iOS

I would like to avoid duplication with Parse.com and Cloud Code or iOS Code. Here is my class from database : I would like when "from" userId has already sent to "to" userId, that doesn't send the second friendRequest. Here is my iOS Code : PFUser…
2
votes
1 answer

Algolia not accepting all settings

I have the following Algolia request: index.setSettings({ getRankingInfo : 1, attributesToIndex:"name,colour,style,material,category", hitsPerPage: 50, …
Rambatino
  • 4,716
  • 1
  • 33
  • 56
2
votes
1 answer

Generate a PDF file from HTML using Parse.com cloud code

Is it possible to generate a PDF file from HTML using Parse.com cloud code? I haven't found anything useful in this regard, just a bunch of archived questions from the Parse.com questions website that were never answered. The nature of the project…
Greg Quinn
  • 1,927
  • 1
  • 23
  • 26
2
votes
0 answers

Mutual friends of two users who are not friends on facebook using Parse and Facebook SDK

I am using the latest Parse SDK 1.7.1 and Facebook SDK 4.0.1 on my iOS application. My users can only log in using their facebook account. A very important feature I need, is showing the number of facebook friends user1 has in common with another…
2
votes
0 answers

Parse >1,000 row subquery

I'm building a tinder-like app, when users swipe left or right a Swipe object is created. I have a cloudcode query that gets a list of _Users neaby using PFGeoPoint, I then have a subquery which grabs all of the current users' Swipe objects and uses…
N S
  • 2,524
  • 6
  • 32
  • 42
2
votes
1 answer

Parse cloud code return 114 function not found

I followed the instruction of parse.com to create a new site including cloud code and public. The static page works. But the cloud code doesn't work. Here is the code in main.js: Parse.Cloud.define("hello", function(request, response) { …
Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
2
votes
1 answer

How can I retrieve a list of objects from a class relation?

I have a class Store that has a relation itemsInStore that contains multiple Item objects on Parse. I'm currently trying to Parse Cloud Code to retrieve all Items in a Store, but don't know what a common practice for this is. In particular, I…
udjat
  • 479
  • 2
  • 10
2
votes
1 answer

parse cloud code push notifications not working

I'm working on a project and I decided to use cloud code to send these user to user push notifications. So here's what I want to do: When a new row is created/saved then take the content from the 'toUser' column which is a Pointer<_User> and then…
2
votes
1 answer

Multiple queries in a loop Parse Cloud Code

I'm having a hard time trying to understand promises, I'm sure I need to use them for this but I don't know how and other answers don't help me at all. I'd like to loop over an array, query all the results for each value of the array, then after…
2
votes
3 answers

Converting cURL to Parse.Cloud.httpRequest

So I am just about finished with integrating Stripe Connect with Parse Cloud Code and a Django web app. Currently, Parse hasn't implemented the Stripe module method to generate tokens given an access token and a customer id. So I need to do this…
jsetting32
  • 1,632
  • 2
  • 20
  • 45