Accepted answer

calling this.updatescollection.get() will asynchronously return a querysnapshot object.

a querysnapshot has a docs property which is an array containing zero or more documentsnapshot objects. the data in these can be extracted with the .data() method.

the code for producing your array could look like this:

let chartdata = this.updates.collection.get()
  .then(querysnapshot => {
    chartdata = =>

Related Query

More Query from same tag