Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+12 votes
asked in CSC490_Spring202021 by (305 points)

2 Answers

+5 votes

You can use collection('...').where() to filter.
Inside the where syntax, you will fill the field and comparison.
For example, if I want to filter the USD currency, I use:
db.collection('money').where('currency', '==', 'USD')

answered by (1.1k points)
+3

Thank you!

+3 votes

The .where() comparison worked for me, but I had to allow firebase to create indexes for different fields. I assume that the indexes are necessary to compare whatever field you are using in the .where()

answered by (1.5k points)
...