I am using Firebase Realtime Database. Below I enclose my firebase structure:
I am trying to recive all IDs where tags
are equal to my payload
(e.g. Phones)
I tried following query
firebase.database().ref('Questionnaires').orderByChild('tags').equalTo(payload).once("value")
.then((data) => {
commit('setLoading', false)
console.log("Result", data.val())
})
.catch((error) => {
commit('setLoading', false)
console.log(error)
})
But in effect I am reciving data.val() = null
I tried various approaches but still got null
Is it possible to construct that query with that data structure ? If yes please teach me. I am out of ideas.