title: Swift Realm - "Value of type 'Results' has no member"
body: <p>I am trying to get the data from a RealmDB and filter by id. As the Realm Documentation suggests (<a href="https://realm.io/docs/swift/latest/#queries" rel="nofollow noreferrer">https://realm.io/docs/swift/latest/#queries</a>) I am using:</p>
  
  <pre><code>    let realm = try! Realm()
      let Result = realm.objects(DBName.self).filter("ID == %@", id) 
  </code></pre>
  
  <p>XCode doesn't show any warning or errors in these two lines, but when a try to use the results by doing this:</p>
  
  <pre><code>    print(Result.ID)
  </code></pre>
  
  <p>Even having the ID field in the database a get the error:
  <code>Value of type 'Results&lt;DBName&gt;' has no member 'ID'</code>. And I also can't access any other field. </p>