Comment by randomdata
2 years ago
> I always assumed that an architectural decision had prevented relational queries in Firebase.
Seems the biggest problem is that Firebase doesn't have relations. How can you query that which does not exist?
I'm guessing what they really want is SQL? Once upon a time when I was stuck on a Firebase project I built a SQL (subset) engine for Firebase to gain that myself, so I expect that is it.
Building a logistics app, I wish I could query in Firebase for items that don’t have a “shipped” field.
But I can’t.
Technically you can: Scan all of the documents. A "relational query language" would have to do the same thing.
That wouldn’t be querying though, right?
Grabbing all the docs in the db into my controller and filtering down that array is what Firebase makes me do instead of writing queries.
1 reply →