'Filtering content from Firebase
So I'm coding a healthy social media app using Flutter and Firebase as my database. I want to have a filter button where users can filter content based on the 'BoardType' field(in the picture) Is there any way I can do this? Firebase screen
Solution 1:[1]
of course, you can do so using filters like:
FirebaseFirestore.instance
.collection('posts')
.where("BoardType", isEqualTo: "Book of the Month").get();
which is a future that returns the documents that match your request.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | tareq albeesh |
