Question: I have a table that will return a number and i need to convert it into a text label

20 = Entered, 30 = Returned, 200 = Cancelled, 220 = Complete, 300 = Deleted

I want these to show in my report as simply 'Complete' etc.

Im able to use the replace function to get one value to show correctly in the report:

```
=Replace(Fields!status.Value,"220","Complete")

```

But i cant work out how to do this for each possible number that will show in this column

Answer: 
It looks that tou want to call`.data()` on collection of documents, not one document. Please see if this code works:

```
db.collection("users").get().then(function(querySnapshot){
  querySnapshot.forEach(doc => {
     console.log(doc.data());
  });
}).catch(err => {
   console.log('Error getting documents', err);
});

```
You should use `docs.map` then `doc.data()`. Here is how to do it with Firestore using `async await` syntax

```
import firebase from 'react-native-firebase'

async fetchTop() {
  const ref = firebase.firestore().collection('people')
  const snapshot = await ref.orderBy('point').limit(30).get()
  return snapshot.docs.map((doc) => {
    return doc.data()
  })
}

```