title: Firebase function to return Json
body: <p>It is a simple requirement - how do I return the entire json from a firebase database. </p>
  
  <p>My function is as such [index.js]</p>
  
  <pre><code>const functions = require('firebase-functions');
  
  const admin = require('firebase-admin');
  var serviceAccount = require('./xxMyKeyxx.json');
  
  admin.initializeApp({
    credential: admin.credential.cert(serviceAccount),
    databaseURL: 'https://xxmyProjectxx.firebaseio.com'
  });
  
  
  exports.myQuery = functions.https.onRequest((req, res) =&gt; {
    // Grab the text parameter.
    const original = req.query.text;
  
  
    return admin.database().ref('/myFbDatabase').once.xxx
    I lost it from here. 
  </code></pre>
  
  <p>what is the syntax to return the Json that is sitting in my FB database /myFbDatabase ?
        });</p>