I have a collection in Firestore with the following structure:
Publications   
     PubData <---- This is a Doc
        1892872 <---- This is a map  
          Name: abc
          Id: 123 
        1892875 <---- This is a map  
          Name: abc
          Id: 123 
Querying the PubData document:
fb.publicationsCollection
  .doc("pubdata")
  .get()
  .then(res => {
   let pubData = res.data();
   })
returns the following data:
{1892872: {…}, 1892875: {…}}
How can I return this as an array, so I can iterate over it with a for loop?
 
     
    