Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Querying Firestore documents by Array or Map fields values in Firebase console

Here, I want to query by the value "ministoreid1" in Firebase console. But I am not able to figure out. Here, I am trying to do the query in console not using codes.

like image 435
Ssubrat Rrudra Avatar asked Dec 22 '25 04:12

Ssubrat Rrudra


1 Answers

I have filed the feature request at Alex' suggestion. And the reply I received from Firebase Support:

Currently, there is no query similar to array-contains available in the Firestore Console. I can file a feature request ticket on your behalf. However, I can't guarantee anything at the moment, so please watch out for any updates on our blog or release notes for now. For the map field, you can try to filter on the console using the format: 'mapFieldName.keyName' in the field text box

So we can query for map values by 'mapFieldName.keyName'. I didn't know this before.

like image 106
Ssubrat Rrudra Avatar answered Dec 23 '25 17:12

Ssubrat Rrudra