Questions tagged [parse-javascript-sdk]
71 questions
8
votes
2 answers
How to query relational data in Parse JavaScript
I am quite new to Parse.
I have a database set up using this code:
var Class = Parse.Object.extend("Class");
var Team = Parse.Object.extend("Team");
var Student = Parse.Object.extend("Student");
var newClass = new Class();
newClass.set("name",…

Sunwoo Park
- 386
- 3
- 15
6
votes
2 answers
How to make parse find/save operations synchronous?
We are writing server code in nodejs and using Parse javascript sdk. Often we need to fetch or update various Parse objects. For example, fetch a user with username 'Example'.
function fetchUser(username)
{
var User =…

Paagalpan
- 1,261
- 2
- 16
- 25
4
votes
1 answer
convert angular 2 application to integrate able sdk
i have a angular 2 application. I was wondering if i could convert this application to an integrate-able sdk which other applications can use by adding script tags in their headers. If this is not possible can anyone provide any tutorial link which…

Shoaib Iqbal
- 2,420
- 4
- 26
- 51
4
votes
1 answer
angular.copy of Parse JS SDK object with DisableSingleInstance mode returns empty object
Not sure if its a bug or a misunderstanding of how things are meant to work:
disable single instance mode
Create a new parse object (or query one from the server) and populate properties
Make a copy of the object (e.g. if you were editing the…

simonberry
- 910
- 9
- 20
4
votes
1 answer
Parse Javascript - How to query by relationship object's attribute
I am wondering if there is a way to directly query objects by relationship object's attribute?
It might sound confusing, for example:
Each user have many installations, I have pointer from each installation to its user, forming a many to one…

user5661669
- 51
- 4
3
votes
2 answers
Login as a user in parse-server without having his password useing the master key?
It's possible to "simulate" a user using the master key? I would like this feature to test what the user can really see in the application and verify that he does not have access to some part of it etc.
Is this possible without knowing the password…

Simoyw
- 681
- 1
- 9
- 30
3
votes
0 answers
error when setting up parse with intel xdk
I'm starting from scratch here just trying to get the basic connection between intel and parse working. I set up the parse web service in Intel-XDK and copied the necessary javascript test code from Parse into my js file. I attached a button click…

Spilot
- 1,495
- 8
- 29
- 55
3
votes
1 answer
Parse.com CloudCode add user to existing role not working
Here is the Parse javascript cloud code I am trying to use. As a new _User is created I want to add them to my 'Client' Role.
Parse.Cloud.afterSave(Parse.User, function(request) {
Parse.Cloud.useMasterKey();
query = new…

Constantijn Schepens
- 218
- 1
- 12
2
votes
1 answer
Parse Server - select a few fields from included object
Is it possible to use .select(JS) / selectKeys(Android) ONLY on the object which is retrieved via .include()?
For example, Class A has a pointer to class B.
When I query for Class A, I want all the contents of Class A and only a few selected fields…

Tanzim Chowdhury
- 3,020
- 2
- 9
- 21
2
votes
1 answer
Property unset by CloudCode is overwritten by local Parse cache
I have a Cloud Code function which gets passed the id of an existing Parse object, manipulates and saves that object, and returns it to the client (which is implemented with the JS SDK). This generally works well, with one exception: if the CC…

dr_barto
- 5,723
- 3
- 26
- 47
2
votes
1 answer
PARSE check original object on BeforeSave
I need to check the original object on before save to see what value has changed. currently i have this:
Parse.Cloud.beforeSave("Stats", function(request, response) {
if (!request.object.isNew()){
var query = new Parse.Query("Stats");
…

rob180
- 901
- 1
- 9
- 29
1
vote
1 answer
Parse-server result.attributes vs get()
Been using Parse Server for about a month in our project, and it's been a fantastic addition to our tech stack. However, there is one thing that has slowed down our team a bit ; when using Parse.Query, we can only access the fields of the returned…

Hakim Bawa
- 29
- 3
1
vote
2 answers
Parse: no sessionToken retrieved after initial sign up using Google oAuth
For my React Native app I am using Parse JS SDK and hosted Parse Server on Back4app.
When I try to register a new user, the user is not authenticated because the response does not return a sessionToken.
However, once the user is in the db and signs…

Pawel
- 1,560
- 1
- 10
- 11
1
vote
1 answer
Using setTimeout() to Schedule pushes
Since Scheduled push is not available on Parse , I'm using setTimeout() to schedule pushes.
I'm using back4app.
// I call this cloud code
Parse.Cloud.define("pushMultiple",async (request) => {
//Using set timeout to send out a push 1 hour later
…

Tanzim Chowdhury
- 3,020
- 2
- 9
- 21
1
vote
1 answer
Set StorageController in Parse-SDK-JS
i am developing an ionic app so i want to use the ionic storage module to store data on the device.
Parse is the backend so i have to tell the parse SDK that it should use the Ionic Storage. I build a StorageController like the included react-native…

fastr.de
- 1,497
- 14
- 23