parse-cloud-code Questions

5

Solved

I'm trying to compare a new object with the original using CloudCode beforeSave function. I need to compare a field sent in the update with the existing value. The problem is that I can't fetch the...

2

Solved

When I try to run count function I get Error: Parse Objects not allowed here E2015-11-09T12:36:10.778Z]v184 Ran cloud function count with: Input: {} Result: Error: Parse Objects not allowed...
Ramonaramonda asked 9/11, 2015 at 13:30

4

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 que...
Living asked 14/11, 2014 at 4:56

3

Solved

Writing a Parse Cloud Function (which uses Parse Javascript SDK) and I am having trouble checking to see if the current user has role "Admin". I'm looking at the web view of the Role clas...
Embankment asked 21/3, 2015 at 0:14

2

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 c...
Trent asked 15/12, 2015 at 11:47

2

Solved

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 upda...
Hypallage asked 30/5, 2017 at 23:32

2

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 cu...
Whiteeye asked 19/2, 2016 at 11:32

1

Solved

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 follo...
Aerobiosis asked 12/1, 2017 at 0:1

2

Solved

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 ov...
Fang asked 4/3, 2016 at 3:58

2

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 C...
Regressive asked 3/11, 2015 at 5:3

0

I store images on Parse's managed database as a field called imageFile. When I ran through the migration guide to move data out to MongoLab, I noticed that the imageFile field doesn't contain...
Tiga asked 6/2, 2016 at 14:34

0

I'm doing a parse batch save requestas follows: Parse.Object.saveAll(nameGenderArrayToSave) nameGenderArrayToSave is an array with thousands of objects to save. I'm also interested in guarante t...
Berkly asked 17/11, 2015 at 16:40

1

Solved

I'm working on a Cloud Code function that uses facebook graph API to retrieve users profile picture. So I have access to the proper picture URL but I'm not being able to acreate a Parse.File from t...
Lightfooted asked 15/11, 2015 at 21:29

1

i'm trying to make a simple check before saving an object on Parse. I'm using the "beforeSave" method to check if object has necessary fields setup correctly before saving. The problem is that whe...
Damnatory asked 11/9, 2015 at 19:28

1

Solved

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...
Selfeffacement asked 19/9, 2015 at 11:0

2

Solved

I know in the iOS sdk I can do it like this [PFCloud callFunctionInBackground:@"email" withParameters:@{@"param1": @"quantity1, @"param2": @"quantity2} block:^(NSString *result, NSError *error) {...
Marmot asked 3/9, 2015 at 21:12

1

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...
Wysocki asked 4/8, 2015 at 16:59

2

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 u...
Oregano asked 29/6, 2015 at 18:29

2

Solved

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...
Emulsion asked 1/6, 2015 at 22:16

3

Solved

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 oth...
Breakthrough asked 24/1, 2015 at 19:57

2

Solved

Is there any way to effectively delete rows in Parse that do something like this SQL statement? DELETE FROM table WHERE delete_me = 1 I've tried this, but it's very slow: var query = new Parse....
Wan asked 9/3, 2015 at 2:36

2

Solved

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 getUser...
Cyclotron asked 9/10, 2014 at 19:56

1

I have been struggling with saving a file I retrieve from an HTTP Request for a a few days now. Here is my code: Parse.Cloud.httpRequest({ url: "https://ss1.4sqi.net/img/categories_v2/food/vietn...
Exemplificative asked 23/9, 2014 at 1:43

1

Solved

I need to check (and take appropriate action) if an object is just being created, or an already-existing object is being updated with new values. Is there any way to check this accurately?
Braided asked 19/9, 2014 at 21:47

3

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. ...
Rhynchocephalian asked 12/8, 2014 at 10:8

© 2022 - 2024 — McMap. All rights reserved.