I am trying to query data in FB/FS.
Lets say I have data like this:
"items": {
"id1":{
"phrase": "the cat got hit by a van"
}
"id2":{
"phrase": "the frog got hit by a bad driver"
}
"id3":{
"phrase": "the dog got hit by a car"
}
"id4":{
"phrase": "the deer got hit by a bus"
}
}
If I wanted to query data where phrase contains "cat" or "dog || van", how would I do this? Or can it be done?
I tried
db.collection("items").where("phrase", "array-contains", urlParams.get('s')).get().then((querySnapshot) => { ... }
but phrase is not an array, its a string.