Firebase has recently added a long waited feature to create “in” queries for Cloud Firestore database. This means you can easily query documents containing one of the parameter. In real life solutions this means that you can e.g. query Orders which state is either “In transit” or “Delivered” or “Ready to ship”.
Here’s an “Car finder project which showcases new Query use cases: https://neonto.cloud/u/carfinderdemo
“In query” example
[“In transit”, ”Delivered”, “Ready to ship”]
Another notable new feature is that one can create “array-contains-any” query. This is really handy when you e.g. need to list documents which belong to certain category.
You can write the queries into Query field in Data sheet after you update the Firebase plugins into latest versions.
How to get the update?
Plugin update appears when you open React Studio app. Just click “Plugins” -> “Plugin manager” -> “Update”
Thanks for reading! You might enjoy also these popular posts related to Firebase plugins:
The easiest way (by far!) to build a real React + Firebase web app
Create a working realtime web app using Firebase’s next-generation Cloud Firestore and React Studio for easy front-end…
React Studio is a Mac app for designing mobile first ReactJS web apps. Download it free from www.reactstudio.com