Re-base (firebase) query for nested children and sorting

I know that firebase recommends that you denormalize the structure of your database ... but what if you did not listen correctly ...

Example:

  • of users

    • user1
      • Foo
        • Baz
        • bar
      • chat rooms
        • (huge json)
    • user2
      • Foo
        • Baz
        • bar
      • chat rooms
        • (huge json)

foo and chats are my way to denormalize data within each user.

Is it possible to query users/*/foo and sort it by bar ?

+5
source share
1 answer

No. You cannot complete a query regarding the sibling property.

+1
source

Source: https://habr.com/ru/post/1265400/


All Articles