I've just started using Parse, its been fairly easy to understand until I got to the more advanced aspects such as saving an array of pointers.
I read on a Parse forum that the best way to do this was to save a JSON object to the server that defined an array of types, for example I have an array of users:
[
{
"__type":"Pointer",
"className":"_User",
"objectId":"YkIlOohXZV"
},
{
"__type":"Pointer",
"className":"_User",
"objectId":"MBe4g6t8av"
}
]
This information gets saved to Parse just fine, however when I come to query the data I never get a Parse error 102.
I have tried:
let myRequestsQuery = PFQuery("Requests")
myRequestsQuery.whereKey("recipients", containsString: PFUser.currentUser().objectId!)
Why am I getting an error 102? Is there a better way to search the array or do I have to query everything back from the server?