title: Query Based Synced Realm LinkingObjects returning nil
body: <p>All the solutions I have found online are for local Realms, not synced Realms (I am using Query based sync). How to do it right for a synced Realm?</p>
  
  <p>I have a <code>Shop</code> object and an <code>Item</code> object. <code>Shop</code> has many items. User can browse the items and should see which shop that item belongs to. Pretty simple and straight forward scenario.</p>
  
  <p>In the <code>Shop</code> class I have:</p>
  
  <pre><code>let items = List&lt;Item&gt;()
  </code></pre>
  
  <p>and in the <code>Item</code> class I have</p>
  
  <pre><code>let shops = LinkingObjects(fromType: Shop.self, property: "items")
  var shop: Shop? { return shops.first }
  </code></pre>
  
  <p>The Realm query is like this:</p>
  
  <pre><code>private var realm             : Realm!
  private var subscriptionToken : NotificationToken?
  private var syncSubscription  : SyncSubscription!
  
  ...
  ...
  ...
  
  let items = realm.objects(Item.self)
  syncSubscriptionItem = items.subscribe()
  subscriptionTokenItem = syncSubscriptionItem.observe(\.state, options: .initial) { state in
      if state == .complete {
          let shopName = items[0].shop?.name // Shop is always nil
      }
  }
  </code></pre>
  
  <p>I can see shop only if the shop's owner has logged into the app, which means Realm has synced shop information to local Realm. But for users on other devices, shops never get synced. But how to sync shops for all other users via this type of back linking?</p>
  
  <p>Screenshot is attached to clarify what I mean:</p>
  
  <p><a href="https://i.stack.imgur.com/Tf2pg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tf2pg.png" alt="enter image description here"></a></p>