Firebase search by child value

后端 未结 2 834
庸人自扰
庸人自扰 2020-11-29 01:24

I have the following structure on my Firebase database:

I would like to search for an user by name, last name or email but as I don\'t have the user key in the leve

2条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 01:56

    A warning to avoid unpleasant surprises: when you use orderByChild and equalTo do not forget to add an index on your data (here's the doc)

    If you don't all the nods will be downloaded and filtered client side which can become very expensive if your database grows.

提交回复
热议问题