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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -