My data in firebase is structured like this (I know it could be structured better.) :
posts
-Kjas0273471234
title: "Post Title"
desc: "Post Description"
tags: [tag1, tag3, tag8]
-Kjas0281386734
title: "Post Title"
desc: "Post Description"
tags: [tag1, tag7]
How can I get all posts that have tag1? I want to display the information about all the posts with the tag tag1. I have tried just selecting all posts, then from there checking if they have the tag, but this is not very good for performance to have to download all the posts.