title: How to hide information in Firebase?
body: <p>I have these requirements:</p>
  
  <ol>
  <li>User will log in via email and multiple Oauth providers. I use function like <code>User.findByEmail('1@1.com')</code>. So I need to have permision to see the list of users before being authenticated.</li>
  <li>User's email address, geolocation and age should be kept secretly from other users.</li>
  </ol>
  
  <p>My first plan was:</p>
  
  <blockquote>
  <pre><code>users:{
    $user-id:{
  
  //  public
      ".read" : true,
      name,
      created_at,
  
      private: {
          ".read" : "auth.email === data.child('email').val()",
          age,
          email,
          geolocation,
      }
      $piority = email
    }
  }
  </code></pre>
  </blockquote>
  
  <p>Then I realized no, it just doesn't work that way. So would anyone please tell me how to do it correctly? Thanks in advance.</p>
  
  <p>P.S. Firebase really needs a filter/serialize method. </p>