Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+13 votes
asked in CSC490_Spring202021 by (1 point)

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 point)
+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 point)
...