ios - Unable to query for Users CKRecords -


with query on public database:

let pred = nspredicate(format: "family == %@", ref) let query = ckquery(recordtype: "users", predicate: pred) 

i no results, though have reference association on 2 users records.

even if try:

let pred = nspredicate(format: "truepredicate") let query = ckquery(recordtype: "users", predicate: pred) 

which should return users records, nothing. though i’d understand apple might not want latter, case cannot query specific users well?

i have scoured documentation, it's little lacking , cannot find conditionals this. users special recordtype, perhaps answer "no cannot query users".

thanks.

user records explicitly not queryable. must use ckdiscoveruserinfosoperation, ckdiscoverallcontactsoperation, -[ckcontainer discoveruserinfo...] or -[ckcontainer discoverallcontactuserinfoswithcompletionhandler] find user record.

if need query on attribute of user you'll need create new record type , store property in there. can use creatoruserrecordid on custom record associate value user.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -