Like upper question, i want to get value of some field in firebase firestore instead of all document with DocumentSnapshot
like this in SQL SE
SE
try this code:
//set a global variable dataList: Array; const dataCollection = firebase.firestore().collection('data'); dataCollection.get(query => { query.forEach(docs => { this.dataList.push({id: doc.id, data:doc.data()}); }) })