title: How can I query and filter Firebase Realtime Database
body: <p>I would like to get all persons from the database where first name and last name is given by user input.</p>
  
  <p>So far this is my code:</p>
  
  <pre><code>admin.database().ref('persons').orderByChild('Firstname').equalTo(firstName).limitToLast(1).once("value").then(function(snapshot) {
  }
  </code></pre>
  
  <p>This code works filtering only Firstname, but I cant find any way of adding another Where Clause for Last name. I tried to add another orderBy but it does not seem working. Does the Realtime Database has to be this hard to make a simple query?</p>