title: reading firebase database with an onCreate()
body: <p>I'm trying to create a <code>database().ref(...).onCreate( event =&gt; {..})</code> as on <code>firebase cloud functions</code> but for a normal data read in my reactJS app. I need to wait for another cloud function to execute his code and write the answer in the <code>.ref(...)</code> path I'm waiting, so after it finishes, I can now read that info.</p>
  
  <p>I'm getting this error: <code>database.ref(...).onCreate is not a function</code>. I can't make a new function for that purpose because I need the callback I get in a query I do inside the <code>..OnCreate( event =&gt; {..})</code></p>
  
  <p>Thought on creating a Wait function, and hold the process for 2 seconds so the cloud function should have enough time to run.</p>
  
  <p>Any other thought?
  Thanks!</p>