I have a Place object, containing an array with objectIds for Tag objects. An example of an array:
[[{"__type":"Pointer","className":"FavoriteTag","objectId":"Toc5sVlzVd"},{"__type":"Pointer","className":"FavoriteTag","objectId":"cUxcl0IFFv"}]]
My first workflow way too slow:
- query each Place object, get the array and parse it to find each objectId
- get the corresponding Place with the objectId
The workflow I'm trying:
- Find the objectId of each matching Tag object
- Put these objectIds in a ArrayList
- Get each Place object that contains a matching objectId from the arraylist
I don't know how to do step 3. I'm trying:
parseQueryFavoritePlaces.whereEqualTo("tags", arrayListTagsObjectIds);
and
parseQueryFavoritePlaces.whereContainedIn("tags", arrayListTagsObjectIds);
but no luck so far. Am I on the right track here?