Skip to content

Commit

Permalink
Fixed subgraph error test failure (#7351)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-tengler authored Aug 10, 2024
1 parent c16f3d5 commit 5902ca2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
4 changes: 4 additions & 0 deletions src/HotChocolate/Fusion/test/Core.Tests/SubgraphErrorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,10 @@ type Product implements Node {
name: String
price: Float
}
interface Node {
id: ID!
}
""");

var subgraphB = await TestSubgraph.CreateAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
## QueryPlan Hash

```text
1187C75DB20A2D54D1EDC1F31D46DA85C597E294
A5FE502D9F6F0548B898BC17A33BC0F2A2A13AE6
```

## QueryPlan
Expand All @@ -58,19 +58,13 @@
"type": "Sequence",
"nodes": [
{
"type": "Parallel",
"nodes": [
"type": "Resolve",
"subgraph": "Subgraph_1",
"document": "query fetch_productById_1 { productById(id: \u00221\u0022) { id name price __fusion_exports__1: id } }",
"selectionSetId": 0,
"provides": [
{
"type": "Resolve",
"subgraph": "Subgraph_1",
"document": "query fetch_productById_1 { productById(id: \u00221\u0022) { id name price } }",
"selectionSetId": 0
},
{
"type": "Resolve",
"subgraph": "Subgraph_2",
"document": "query fetch_productById_2 { productById(id: \u00221\u0022) { score } }",
"selectionSetId": 0
"variable": "__fusion_exports__1"
}
]
},
Expand All @@ -79,8 +73,31 @@
"selectionSetIds": [
0
]
},
{
"type": "Resolve",
"subgraph": "Subgraph_2",
"document": "query fetch_productById_2($__fusion_exports__1: ID!) { productById(id: $__fusion_exports__1) { score } }",
"selectionSetId": 1,
"path": [
"productById"
],
"requires": [
{
"variable": "__fusion_exports__1"
}
]
},
{
"type": "Compose",
"selectionSetIds": [
1
]
}
]
},
"state": {
"__fusion_exports__1": "Product_id"
}
}
```
Expand Down

0 comments on commit 5902ca2

Please sign in to comment.