Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6c050f

Browse files
jlara310samtstern
authored andcommitted
Kotlin, "region" field name should be "regions" (firebase#162)
Fixed Android snippet in previous PR but I missed the Kotlin snippet.
1 parent 71642c5 commit f6c050f

File tree

1 file changed

+1
-1
lines changed
  • firestore/app/src/main/java/com/google/example/firestore/kotlin

1 file changed

+1
-1
lines changed

firestore/app/src/main/java/com/google/example/firestore/kotlin/DocSnippets.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ abstract class DocSnippets(val db: FirebaseFirestore) {
832832
// [START array_contains_any_filter]
833833
val citiesRef = db.collection("cities")
834834

835-
citiesRef.whereArrayContainsAny("region", listOf("west_coast", "east_coast"))
835+
citiesRef.whereArrayContainsAny("regions", listOf("west_coast", "east_coast"))
836836
// [END array_contains_any_filter]
837837
}
838838

0 commit comments

Comments
 (0)