title: How to retrieve data of current user from firebase
body: <p>I'm, developing a simple app to store users images. User authorized via Facebook, and the interact with app.
  I stuck with retrieving data from current user.</p>
  
  <p>In my firebase for now I have such structure:
  <a href="https://i.stack.imgur.com/gzv04.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gzv04.png" alt="enter image description here"></a></p>
  
  <p>I decided to get user data by uid. 
  So I initialized variable </p>
  
  <pre><code>let userID = FIRAuth.auth()?.currentUser?.uid
  </code></pre>
  
  <p>Then I retrieve an array of objects from my database</p>
  
  <pre><code>URL_BASE.child("profile").observeEventType(.Value, withBlock: { (snapshot) in
  
      print (snapshot.value as! [String:AnyObject]!)
  
  })
  </code></pre>
  
  <p>}</p>
  
  <p>In my output I have this:</p>
  
  <pre><code> "-KJSKE4a2y-okl71vDSx": {
      Interest = men;
      gender = female;
      name = girlsname1;
      photo = "http://i.imgur.com/VAWlQ0S.gif";
      surname = girlsurname1;
  }, "-KJSKE4b8TlvxV-urHQo": {
      Interest = men;
      gender = female;
      name = girlsname6;
      photo = "http://media.tumblr.com/tumblr_lnb9aozmM71qbxrlp.gif";
      surname = girlsurname6;
  </code></pre>
  
  <p>And so on</p>
  
  <p>It is ok, but my goal is to print data of currently authorized user. I have an idea of sorting all objects by uid, but I think it is irrational. Hope there is simpler solution. </p>
  
  <p>Authorized users stores in users database. profile database consist of user parameters I'm getting from Facebook.</p>