Creates a new QueryConstraint that orders by the specified child key.
Queries can only order by one key at a time. Calling orderByChild()
multiple times on the same query is an error.
Firebase queries allow you to order your data by any child key on the fly.
However, if you know in advance what your indexes will be, you can define
them via the .indexOn rule in your Security Rules for better performance.
Creates a new
QueryConstraintthat orders by the specified child key.Queries can only order by one key at a time. Calling
orderByChild()multiple times on the same query is an error.Firebase queries allow you to order your data by any child key on the fly. However, if you know in advance what your indexes will be, you can define them via the .indexOn rule in your Security Rules for better performance.