Skip to content Skip to sidebar Skip to footer

Limiting The Firebase Equalto Query With The Optional Key Parameter

I have a feeling I may have the understanding of this feature wrong coming from the SQL background. The documentation is sparse and I haven't been able to find a good example or an

Solution 1:

If you do ref.orderBy("prop").equalTo("value", "key") it'll give the same results as ref.child("key"). The second parameter for equalTo() is essentially useless (unlike for startAt() and endAt(), where it can be used to slice a range.

Also see:

Post a Comment for "Limiting The Firebase Equalto Query With The Optional Key Parameter"