Firestore Search Array Contains For Multiple Values Android
I am using Cloud Firestore and within collections,one named 'channels' containing the following values -> users : ['_id1','_id2'] I have to search in a way to check both the v
Solution 1:
Try db.collection("channels").WhereArrayContains("users", listOf("_id1","_id2")).get() - you referenced the db collection in plural and missed the closing quote in the collection name which might be the reason why it didn't work.
Post a Comment for "Firestore Search Array Contains For Multiple Values Android"