Querying in Firebase by child of child

前端 未结 2 1591
情深已故
情深已故 2021-01-07 07:34

I have a structure of objects in Firebase looking like this:

-KBP27k4iOTT2m873xSE
    categories
        Geography: true
        Oceania: true
    correctans         


        
2条回答
  •  迷失自我
    2021-01-07 07:55

    I think this should work:

    ref.queryOrderedByChild("categories/Oceania").queryEqualToValue(true)
    

提交回复
热议问题