Closed GoogleCodeExporter closed 8 years ago
The result is expected.
for $y in (
for $x in
[{
"kind":"project",
"issues": {
"kind":"nestedthing",
"items": [
{"foo":1, "bar" :2},
{"foo":3, "bar":4}
]
}
}]
return $x)
return $y.issues.items
This query's return type is List<List>. So $z will bind to a List for each
input.
To get the result you want, you can use this query:
for $y in (
for $x in
[{
"kind":"project",
"issues": {
"kind":"nestedthing",
"items": [
{"foo":1, "bar" :2},
{"foo":3, "bar":4}
]
}
}]
return $x)
for $z in $y.issues.items
return $z
Original comment by buyingyi@gmail.com
on 26 Jun 2015 at 6:09
Yes, you are right :) I was misinterpreting the $y to be a list, when it's
really a list of lists- the FLOWR always "listifies".
Original comment by ima...@uci.edu
on 26 Jun 2015 at 7:31
Original issue reported on code.google.com by
ima...@uci.edu
on 23 Jun 2015 at 7:23