title: Swift Parse Query To Get All The People Whose Organization Matches The Logged In Users
body: <p>On our Parse DB we have a User class and an Organization class. There's an object in the User class that points to the Organization class. I want to be able to query for all of the users with the same Organization ID as the currently logged in user. </p>
  
  <pre><code>    let query = PFQuery(className: "Member")
              query.whereKey("organization", equalTo: PFUser.current())
              query.findObjectsInBackground {
                  (objects: [PFObject]?, error: Error?) -&gt; Void in
                  if let objects = objects as [PFObject]? {
                      self.memberObject = []
                      for object in objects {
                          self.memberObject.append(object)
                          self.member.append(Member(
                                 id: object.objectId!,        
                                 createdAt: object["createdAt"] as! String,
                                 firstName: object["firstName"] as! String, 
                                 lastName: object["lastName"] as! String, 
                                 username: object["username"] as! String, 
                                 email: object["email"]  as! String, 
                                 role: object["role"] as! String))
                          print(self.memberObject)
                      }
                      self.tableView.reloadData()
                  } else {
                      print("failure")
                  }
              }
  </code></pre>
  
  <p>This is the query I currently have. So far it isn't pulling anything and nothing is being populated in the arrays. How can I check for what I'm checking for. Which is essentially to see if the logged in user shares a value with another user?</p>