Questions tagged [ckreference]

31 questions
1
vote
1 answer

CloudKit CKReference List

So I hava record that contains a field which is an CKReference List. Now I would like to fetch all referenced(by this list of CKReferences) records(from another type) in batch. Any Ideas?
Stultus
  • 814
  • 2
  • 11
  • 15
1
vote
1 answer

How to modify CloudKit Reference Lists

I can modify the Reference List attribute of my CKRecord in the dashboard without problems, but how can I modify it programmatically? I currently try modifying it as a NSArray. It does not give me any sort of error but even though the array content…
Johannes
  • 325
  • 4
  • 11
1
vote
1 answer

Cannot assign userID as reference

I am trying to assign several different attributes to a record. Date & Name are working properly. Avatar, which is a reference to another record, works also fine. But then I try to assign a reference to the user and I get the…
Quentin Malgaud
  • 405
  • 6
  • 21
0
votes
1 answer

Get value from CKRecord.Reference in CloudKit

I have 2 recordType: "userDetails" and "request" in which one field in "request" is referencing to "userDetails". I'm wondering if I fetch the record from "request" to get the reference field, and then get the rest of the value from reference that's…
Faruuq
  • 13
  • 3
0
votes
1 answer

Cannot fetch multiple CKReference records from public Database in a for loop

I have a contact CKRecord with many location CKRecords ( 1 to many relationship) Both contact CKRecord and Location CKRecord are created in public Database. I add CKReference fro contact to locaiotn via a field named owningContact on…
vrao
  • 545
  • 2
  • 12
  • 33
0
votes
1 answer

Trouble with Couldkit Query and using predicates on field of CKReference

i have a basic missunderstanding about how CKQuery works. I have 2 Record types : Friends : containing fields url_of_profil_pic name ... Vote : containing fields date_of_vote target_of_the_vote (Friends CKReference) the_one_who_vote…
0
votes
1 answer

Fetch large set using CKQueryOperation and CKReference

I have a CKReference attached to 4000 records linked to one CKRecord. They have no action (CKReferenceActionNone). I want to be able to fetch all these records using, CKQueryOperation using NSPredicate as follows: CKReference* recordToMatch =…
Ken Chan
  • 21
  • 1
  • 3
0
votes
1 answer

Subscriptions with CKShare

I am new to subscriptions and Cloudkit and I am trying to setup subscriptions to send a push notification whenever CKShare records are created, edited, deleted, as well as when a participant leaves the share for both the private and shared database.…
ACerts
  • 308
  • 1
  • 6
  • 22
0
votes
0 answers

Using CKReference with CKShare

I am trying to share a parent CKRecord using CKShare. The parent CKRecord has other child records that have CKReferences linked to parent CKRecord. All is fine and the receiver can fetch the parent record, but I can't seem to access the child…
Ken Chan
  • 21
  • 1
  • 3
0
votes
0 answers

How to use CKReference in Swift

It seems that I have searched everywhere for a decent explanation of this topic. Apple docs are great for theory but lack sufficient documentation when it comes to connecting with code. I am looking to build the ever so popular User to Posts schema,…
amjabb
  • 1
  • 5
0
votes
2 answers

Remove reference object from table - Swift

I am having issues to remove a reference relationship from a table. I have the following user2reference added to the following table. And I want just to remove this reference relationship from the table. It should look like this: Tried to store an…
GuiSoySauce
  • 1,763
  • 3
  • 24
  • 37
0
votes
1 answer

Fetch a CKReference object from a CKReference

I have 3 records types which contained attributes like this : Client Username : String ProfilImage : UIImage Comment User : Client Reference Message : String Shop Comments : Comment Reference List Can I fetch the client Username and…
Hans Rietmann
  • 396
  • 5
  • 13
0
votes
2 answers

How to fetch reference string from CKReference object

I have two record type: Books & Authors. Books have two attribute BookName(String) & AuthorName(CKReference). Authors have one attribute AuthorTitle(String). I save CKReference as follows let authorReference = CKReference(record:…
Apoorv Mote
  • 523
  • 3
  • 25
0
votes
1 answer

CloudKit - Storing multiple CKReferences in a CKRecord

In my app, I have a Record type (UserActivity) which just stores images a user wants to save to their profile. This record type only contains a single attribute - a CKReference to another record type (RecordTypeA for example). It works…
SonnyB
  • 269
  • 3
  • 12
0
votes
1 answer

how do I create Reference attribute using CloudKit Dashboard

I created a record using CloudKit Dashboard, so record is NOT created programmatically. Under "Default Zone, Model Data" (Sorry I need at least 10 reputations to post images.. :/ ) So here's the texted version. "EventRef0 975f5715-3ccd-4c5f... …