Commit 8050305
authored
fix: nodes field returning nil on nested collections (#484)
The upstream PR ent/contrib#602 appears to have missed adding the check
for the `nodes` field being used in the collections template. This is
used when you call a collection from another collection, for example:
```
query {
loadBalancer(id: "lb-123"){
ports {
nodes {
pools {
nodes {
id
}
}
}
}
}
}
```
Before this fix the `pools.nodes` would come back as an empty list, with
this fix it's properly filled out.
Signed-off-by: Nicole Hubbard <[email protected]>1 parent 85ef39f commit 8050305
3 files changed
+442
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
0 commit comments