Lets say i have this Data Structure:
{
"posts": {
"-KmRZyki4Z9I4oKEy5aD" : {
"data1": "titel",
"data2": "more text"
},
"-KmRZyki4Z9I4oKEy5aD" : {
"data1": "other titel",
"data2": "more text text text"
},
"-Dmk23sdaokI4oKEy5aD" : {
"data1": "other titel2",
"data2": "more text text text"
}
},
"geofire": {
"-KmRAohOUaGfkMcWRN0p" : {
".priority" : "u30wy2cdfv",
"g" : "u30wy2cdfv",
"l" : [ 54.8161474, 32.2299636 ]
},
"-KmRZyki4Z9I4oKEy5aD" : {
".priority" : "u30wy2cdfv",
"g" : "u30wy2cdfv",
"l" : [ 53.8161474, 62.2299636 ]
},
"-Dmk23sdaokI4oKEy5aD" : {
".priority" : "u30wy2cdfv",
"g" : "u30wy2cdfv",
"l" : [ 12.8161474, 12.2299636 ]
}
}
}
}
Now I am using a Geofire query to get a Array "results" of node-keys which are in a certain region. lets say this array looks like this:
results = ["-KmRAohOUaGfkMcWRN0p", "-KmRZyki4Z9I4oKEy5aD"];
I want to use the Polymerfire Element to get the nodes under "posts" which have a key which is in the results array. I tried to use this:
<firebase-query
id="query"
path="/posts"
data="{{postdata}}"
child="[[results]]">
</firebase-query>
but it is not the propper way to do that. Does someone know how to do this?
Kind Regards
chwzr lee