70 questions
0
votes
2
answers
56
views
jQuery Ajax $.parseJSON works on Localhost but not on server
Hello everybody and thank you in advance for your help.
I have a infinite scroll script that I have develop and working on localhost but not on my server.
The JS code look like this :
$('#load-more')....
-1
votes
1
answer
189
views
Possibility to enable the email verification on only a part of users?
We have two types of accounts in our company. One user type (type1) are the one that we create manually via an internal UI. Now we want to give the possibility to clients to register themselves from a ...
0
votes
1
answer
109
views
How to initialize a ParseObject in a cloud function?
I want to generate a list of ParseObjects based on the cached data I get from Redis. Here's what I’m doing:
function parseHashtagsResponse(cachedObjects) {
var hashtags = [];
for (const ...
0
votes
1
answer
2k
views
Permission denied to query class in the Parse Server with JS SDK
I created a class in my Parse Server, using the Parse Dashboard, and then I changed the Class Level Permissions to allow only one user to perform read and write operations in the documents of this ...
0
votes
0
answers
210
views
Trying to read value from back4app object and set it to a variable but getting error: Cannot set property 'loginName' of undefined
This is my codde, writing it to the console works fine, error occurs when assign the value to a variable.
const User = Parse.Object.extend("User");
const query = new Parse.Query(User);
...
1
vote
1
answer
288
views
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) => {
//...
0
votes
0
answers
299
views
Modify object before client receiving it on LiveQuery
I am trying to hide some fields in my cloud code for a class with blocking value to a default number in afterFind trigger.
Parse.Cloud.afterFind("Question", async (req) => {
let objs = req....
0
votes
2
answers
196
views
How to unset nested property in `beforeSave` cloud function?
I've extended a Parse.Object. Now I want to unset a nested property before saving an object. This nested property settings is an object.
So my hook looks like this:
Parse.Cloud.beforeSave('MyObject',...
0
votes
0
answers
1k
views
Importing parse/node throws an error but works without the import
So if you download the Parse platform example nodejs example which can be found here https://github.com/parse-community/parse-server-example ,
you will notice that Parse does not get imported/required ...
1
vote
0
answers
182
views
How to create an aggregate query in JS where $in contains null?
This MongoDB query executes fine in the shell:
db.MyCollection.aggregate([
{
$match: {
"language": { "$in": [null, "en"]}
}
}
]).pretty()
The query returns ...
0
votes
1
answer
844
views
Query by date with JS in Back4App
I've got dates in my Back4App backend with times defaulting to midnight (start of day) e.g.
5 May 2019 at 00:00:00 UTC
I'm trying to use this date as a filter in my query. Without the filter, the ...
1
vote
2
answers
256
views
parse server - how to extract longitude+latitude from ParseGeoPoint in cloud code
In cloud code, I want to get the longitude and latitude from a geopoint that was stored in the DB.
This is some of what I see in the logs - for afterSave function
2019-03-24T13:41:01.130Z - ...
0
votes
1
answer
190
views
Parse.com match all pointers on array in given relation column
I have Conversation classes with a members relation attribute pointing to User class.
This members attribute consists of people belong to a particular conversation.
Now I want to query if given ...
0
votes
0
answers
206
views
Parse JavaScript SDK subscription using containedIn
I'm trying to retrieved chats that a particular user is part of and that works but when I'm subscribing to that query and someone starts a chat me or I start a chat with a new person, it doesn't ...
4
votes
1
answer
386
views
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 ...
0
votes
1
answer
48
views
Cannot initialise Parse in javascript
I have a self hosted parse-server. However I can't seem to do a simple object save in javascript.
My server runs fine and am able to do the parse-server-example.
However, when I try to add a new ...
3
votes
2
answers
1k
views
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 ...
1
vote
2
answers
1k
views
How to use the _linkWith method on an existing user? (Parse Server)
I'm trying to authorize a user through facebook, for this I use the _linkWith method.
I can use the _linkWith method on a new user. For example, this code works:
//I get the data with Facebook SDK
...
1
vote
1
answer
133
views
Parse fetches objects without any actual data
My Parse SDK seems to be doing weird things, check this out:
await Parse.User.logIn("testuser", "123asd");
this.initMap().then( correct => this.correctInit = correct);
const places = await ...
1
vote
0
answers
833
views
Parse Server aggregate using match on date column
I'm using parse-server version 2.7.4 with parse (the JavaScript interface) version 1.11.1. I'm trying to execute an aggregate query using match on a date column. Here's what my pipeline looks like:
[
...
1
vote
0
answers
144
views
Parse JS SDK : Manually mark attribute as Dirty
I am experiencing very occasional instances where the parse js sdk does not detect that an Array attribute has changed ... and is therefore not including it in the payload on a save().
I can see ...
1
vote
1
answer
243
views
Parse LiveQuery Subscription always receive the old version
I have a collection of beacons that I want to show on a map. I want their positions to be synchronized between all instances of the application.
That is, when I move a beacons to another position I ...
0
votes
1
answer
375
views
Multiple parallel Increments on Parse.Object
Is it acceptable to perform multiple increment operations on different fields of the same object on Parse Server ?
e.g., in Cloud Code :
node.increment('totalExpense', cost);
node.increment('...
4
votes
1
answer
152
views
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 ...
0
votes
1
answer
967
views
Parse-Server XMLHttpRequest failed on save with large dataset
I'm running Parse-Server v2.2.12 and am trying to run a job that pulls a huge dataset (~13k records), processes it and then saves each record to a table in my Parse db. It appears that my server is ...