It's easier to explain through an example.
The data in question is:
data : {
cluster1 : {
id: 123
things: [153, 525, 743]
},
cluster2 : {
id: 124
things: [113, 547, 124]
},
}
And we want to find all clusters that have things containing '547', which case should return the whole of cluster2.
I know how to do this in firestore, it would look something like this:
db.collection("data")
.where("things", "array-contains", userInput)
But for certain reasons I can't use firestore.
Does anyone know if there is a way to do it in Firebase Realtime Database.
Thank you!