title: ionic react doing firebase query
body: <p>I am using ionic react and stuck on query data. i know how to update specific data using code like below:</p>
  <pre><code>const dbref = firebase.database().ref('/') 
  await dbref.child(&quot;/withdrawQueue&quot;).push({&quot;date&quot;: (new Date()).getTime(), &quot;uid&quot;: uid, &quot;coins&quot;: diviCoins, &quot;status&quot;: &quot;pending&quot;})
  
  </code></pre>
  <p>as it is a ref so that does not work to do data query or at least i dont know how. i did something like</p>
  <pre><code>dbref.child(&quot;withdrawQueue&quot;).orderByChild(&quot;uid&quot;).equalTo(uid).once('value', resp=&gt; {
            console.log(&quot;user withdraw request is&quot;, resp)
  }
  </code></pre>
  <p>but this is not coming to the resp =&gt; i have no idea why.</p>