Firebase, query with “a child exists” as a condition?

后端 未结 1 1326
渐次进展
渐次进展 2021-02-19 11:17

I have a database like this (photo attached): Trip has BIDS, and awardedBid. I use awardedBid!=null as a way to determine the trip is sti

相关标签:
1条回答
  • 2021-02-19 12:00

    You can remove your attribute bidDone and using startAt() to get all the child having awardedBid not null:

    ref.orderByChild("awardedBid").startAt("")
    

    or this to get only the child without bid

    ref.orderByChild("awardedBid").endAt(null)
    
    0 讨论(0)
提交回复
热议问题