title: How to get map of firebase cloud store data in node js?
body: <p>Actually I m making a discord bot list ,I want to show all the bots ,I m using express nodejs.
  My data in firebase are as shown below</p>
  
  <pre><code>db.collection("bots").doc("12345").set({
  prefix:"?",
  id:"12345",
  server:"5"
  })
  </code></pre>
  
  <pre><code>db.collection("bots").doc("12346").set({
  prefix:"-",
  id:"12346",
  server:"7"
  });
  </code></pre>
  
  <hr>
  
  <hr>
  
  <pre><code>const x = require ("express");
  const router = x.Router ()
  const {db} = require("../app");
    db.collection("bots").
  get().then((querySnapshot) =&gt; { const x = require ("express");
  const router = x.Router ()
  const {db} = require("../app");
    db.collection("bots").where("approved", "==", false).
  get().then((querySnapshot) =&gt; { 
      querySnapshot.forEach(function(doc) {
     const bot =  doc.data()
     console.log(bot. prefix)
        router.get("/",(req,res) =&gt; {
          res.send(bot.id+"=&gt;"+bot.prefix)
                   })
      });
  })
  
  module.exports = router;
  </code></pre>
  
  <hr>
  
  <p>Output:</p>
  
  <pre><code>12345 =&gt; "?"
  </code></pre>
  
  <p>__
  Expected output </p>
  
  <pre><code>12345 =&gt; "?"
  12346 =&gt; "-"
  </code></pre>
  
  <hr>
  
  <p>When I console,it returns both <code>prefix</code>
  But when I tried to render it ,it showing only the first one..</p>