Mirroring Shared data CoreData + CloudKit

Hi,

I've set up NSPersistentCloudKitContainer with mirroring and it works well. I also managed how to create share for records. But how I can get shared record synced with my Core Data?

Example:
User A (owner) shared record with user B, how that record (with 1-to-many relationship) can be synchronised with user B Core Data?
Mirroring Shared data CoreData + CloudKit
 
 
Q