I have following structure, cities is an array.
-NodeX
-KtI6rv4Wf5eEZLLXqRp
name: MyName1
Description: My Desc1
Cities
0
name:My City
isBig: False
1
name:Your City
isBig: True
2
name:His City
isBig: False
-KtKHcUjNlBuZSY7_5kv
name: MyName
Description: My Desc
Cities
0
name:My City
isBig: False
1
name:Your City
isBig: False
2
name:His City
isBig: False
-Kuc1bpEcW2yJEq6OK72
name: MyName
Description: My Desc
Cities
0
name:My City
isBig: True
1
name:Your City
isBig: True
2
name:His City
isBig: False
I want to get top level nodes having ANY city which is Big (isBig=True) i.e. I want to get following two nodes.
KtI6rv4Wf5eEZLLXqRp
Kuc1bpEcW2yJEq6OK72
Ideally, I want to use Polymerfire
query element
, but even if there is another solution, I would go with that.