jeudi 5 mars 2015

Sorting Parse results by objectId of pointer


Vote count:

0




I'm using Javascript and I have two Parse tables. One table has a "user" field with that has a pointer to the user table. I want to do a query on the first table where I filter the results by the objectId of the pointer ("user" field).


I've tried several things such as using dot notation and containerIn and equalTo or matches query with an inner query. From looking at other sources I get the feeling it's up one of these two allys but clearly I'm not executing well. Here is the code from one of my attempts:



var innerQuery = new Parse.Query(Parse.User);
innerQuery.equalTo("objectId", conId); //where conId is an array of ObjectIds
tQuery.matchesQuery("user", innerQuery); //where "user" is the field in the tQuery table with the pointer to the User table.


asked 39 secs ago







Sorting Parse results by objectId of pointer

Aucun commentaire:

Enregistrer un commentaire