title: ios swift parse: Collect data from 3 classes
body: <p>I have this structure:</p>
  
  <ul>
  <li>User</li>
  <li>CardSet with pointer "user" to User.objectId and a col "name"</li>
  <li>Card with pointer "cardset" to CardSet.objectId and a col "name"</li>
  </ul>
  
  <p>I would like to select all card data including the name of the CardSet for the currentUser. I am quite lost here as I am new to parse and swift and don't know really how to get this done. </p>
  
  <p>I checked the docs and understand I have to include</p>
  
  <pre><code>var query = PFQuery(className: "Card")
  query.includeKey("cardset")
  </code></pre>
  
  <p>to get the cardset object.
  What I don't get is how to select the data only for the current user?</p>
  
  <p>And at the end, how to get all data into an Array to use it for a table view and output the data to its table cell labels?</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>var noteObjects: NSMutableArray! = NSMutableArray()
  func fetchAllObjects(){
  
          var query = PFQuery(className: "Card")
          query.includeKey("cardset")
          query.findObjectsInBackgroundWithBlock { (objects, error) -&gt; Void in
  
              if (error == nil){
  
                  var temp: NSArray = objects as NSArray
                  self.noteObjects = temp.mutableCopy() as NSMutableArray
                  self.tableView.reloadData()
  
              }else{
                  println(error.userInfo)
              }
          }
          println(self.noteObjects)
      }
  </code></pre>