Is Firebase good for queries?

To implement functionalities like recent search history, recently viewed items, firebase would be the best option. This is possible since firebase is just a bucket of data that can be easily allocated for each user. Queries with limited sorting and filtering functionality can be performed with the firebase database .

Read more

How do I add an array to firestore?

When it comes to the official documentation regarding how to update elements in an array in Firestore, it says that: If your document contains an array field, you can use arrayUnion() and arrayRemove() to add and remove elements . arrayUnion() adds elements to an array but only elements not already present.

Read more