I am doing a query and I am checking to see if the value in the column "Parent", which is a pointer, is equal to a string, newLogObjectId. I obviously cannot do this since a pointer and a string are a different value type, (returns nil). When I look at the data in Parse, I notice that in the Parent column, the objectId is listed, but within a button, which when clicked, load the NewLog class.
How do I change "Parent" be the objectId in the Pointer in the code "query1.whereKey("Parent", equalTo:newLogObjectId)"? Something like "Parent.objectId"
//ObjectId of row of Marker Selected, a string, for example, "MCeKMyxRIt"
let newLogObjectId = objectIdArray[markerIndex]
//Query ComparablePhotos class
let query1 = PFQuery(className: "ComparablePhotos")
//Grab all rows of Parent, equal to newLogObjectId ex: "MCeKMyxRIt"
//Issue: "Parent" is a pointer, not a String. Parent has an objectId
query1.whereKey("Parent", equalTo:newLogObjectId)
//Get result as an object
viewRecordObject = query1.findObjects() as! [PFObject]

whereKey("objectId", containedIn:objectIdArray)to get all PFObjects with the associated object IDs. Have this query fetch the Parent field, then iterate through your objects to get each Parent. - Connor Neville