Skip to content

Commit 6e97f07

Browse files
Update snapshots (#8308)
Co-authored-by: Pascal Senn <[email protected]>
1 parent 8607cec commit 6e97f07

9 files changed

+71
-194
lines changed

src/HotChocolate/Fusion/src/Core/Planning/Pipeline/ExecutionStepDiscoveryMiddleware.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,11 @@ private void CollectNestedSelections(
447447
}
448448

449449
private static void TryEnqueueBacklogItem(
450-
Queue<BacklogItem> backlog,
451-
ISelection parentSelection,
452-
SelectionPath? selectionSetPath,
453-
ObjectTypeMetadata declaringType,
454-
List<ISelection> leftovers,
450+
Queue<BacklogItem> backlog,
451+
ISelection parentSelection,
452+
SelectionPath? selectionSetPath,
453+
ObjectTypeMetadata declaringType,
454+
List<ISelection> leftovers,
455455
bool preferBatching)
456456
{
457457
foreach (var item in backlog)

src/HotChocolate/Fusion/test/Core.Tests/UnionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ ... on Item3 {
479479
CollectSnapshotData(snapshot, request, result);
480480
await snapshot.MatchMarkdownAsync();
481481
// Ideally it would just be one request, but that's for another day...
482-
Assert.Equal(3, subgraphB.NumberOfReceivedRequests);
482+
Assert.Equal(2 , subgraphB.NumberOfReceivedRequests);
483483
}
484484

485485
[Fact]

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/InterfaceTests.Selections_On_Interface_And_Concrete_Type_On_Node_Field_Interface_Selection_Has_Dependency.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
"data": {
88
"node": {
99
"__typename": "Item2",
10-
"id": "something",
10+
"id": "SXRlbTI6MQ==",
1111
"products": [
1212
{
13-
"id": "1",
13+
"id": "2",
1414
"name": "string"
1515
},
1616
{
17-
"id": "2",
17+
"id": "3",
1818
"name": "string"
1919
},
2020
{
21-
"id": "3",
21+
"id": "4",
2222
"name": "string"
2323
}
2424
],
@@ -55,7 +55,7 @@ query testQuery($id: ID!) {
5555
## QueryPlan Hash
5656

5757
```text
58-
7F627F0C88E6A2C3CDB2AAE846ED84105A66D357
58+
D7ECED31E24122116A43B641BB4FE1FFDC849F00
5959
```
6060

6161
## QueryPlan
@@ -152,20 +152,6 @@ query testQuery($id: ID!) {
152152
"variable": "__fusion_exports__2"
153153
}
154154
]
155-
},
156-
{
157-
"type": "ResolveByKeyBatch",
158-
"subgraph": "Subgraph_2",
159-
"document": "query testQuery_6($__fusion_exports__1: [ID!]!) { nodes(ids: $__fusion_exports__1) { ... on Product { name __fusion_exports__1: id } } }",
160-
"selectionSetId": 4,
161-
"path": [
162-
"nodes"
163-
],
164-
"requires": [
165-
{
166-
"variable": "__fusion_exports__1"
167-
}
168-
]
169155
}
170156
]
171157
},

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/InterfaceTests.Selections_On_Interface_Field_And_Concrete_Type_Interface_Selection_Has_Dependency.md

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ query testQuery {
3535
## QueryPlan Hash
3636

3737
```text
38-
2E441B48CD5764FF5C99D83377ED4452DA4968AF
38+
5722F5134A038091DDEBF004D5733DF1141AD163
3939
```
4040

4141
## QueryPlan
@@ -65,35 +65,16 @@ query testQuery {
6565
]
6666
},
6767
{
68-
"type": "Parallel",
69-
"nodes": [
70-
{
71-
"type": "Resolve",
72-
"subgraph": "Subgraph_2",
73-
"document": "query testQuery_2($__fusion_exports__1: ID!) { authorById(id: $__fusion_exports__1) { displayName } }",
74-
"selectionSetId": 3,
75-
"path": [
76-
"authorById"
77-
],
78-
"requires": [
79-
{
80-
"variable": "__fusion_exports__1"
81-
}
82-
]
83-
},
68+
"type": "Resolve",
69+
"subgraph": "Subgraph_2",
70+
"document": "query testQuery_2($__fusion_exports__1: ID!) { authorById(id: $__fusion_exports__1) { displayName } }",
71+
"selectionSetId": 3,
72+
"path": [
73+
"authorById"
74+
],
75+
"requires": [
8476
{
85-
"type": "Resolve",
86-
"subgraph": "Subgraph_2",
87-
"document": "query testQuery_3($__fusion_exports__1: ID!) { authorById(id: $__fusion_exports__1) { displayName } }",
88-
"selectionSetId": 3,
89-
"path": [
90-
"authorById"
91-
],
92-
"requires": [
93-
{
94-
"variable": "__fusion_exports__1"
95-
}
96-
]
77+
"variable": "__fusion_exports__1"
9778
}
9879
]
9980
},

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/InterfaceTests.Selections_On_Interface_Field_Interface_Selection_Has_Dependency.md

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ query testQuery {
3131
## QueryPlan Hash
3232

3333
```text
34-
D772126D1EEF02DAC266CB5A057F564060D55FD9
34+
E1E94C2534B99BC1CF6E9A80F111DBAE1A83C80C
3535
```
3636

3737
## QueryPlan
@@ -61,35 +61,16 @@ D772126D1EEF02DAC266CB5A057F564060D55FD9
6161
]
6262
},
6363
{
64-
"type": "Parallel",
65-
"nodes": [
66-
{
67-
"type": "Resolve",
68-
"subgraph": "Subgraph_2",
69-
"document": "query testQuery_2($__fusion_exports__1: ID!) { authorById(id: $__fusion_exports__1) { displayName } }",
70-
"selectionSetId": 3,
71-
"path": [
72-
"authorById"
73-
],
74-
"requires": [
75-
{
76-
"variable": "__fusion_exports__1"
77-
}
78-
]
79-
},
64+
"type": "Resolve",
65+
"subgraph": "Subgraph_2",
66+
"document": "query testQuery_2($__fusion_exports__1: ID!) { authorById(id: $__fusion_exports__1) { displayName } }",
67+
"selectionSetId": 3,
68+
"path": [
69+
"authorById"
70+
],
71+
"requires": [
8072
{
81-
"type": "Resolve",
82-
"subgraph": "Subgraph_2",
83-
"document": "query testQuery_3($__fusion_exports__1: ID!) { authorById(id: $__fusion_exports__1) { displayName } }",
84-
"selectionSetId": 3,
85-
"path": [
86-
"authorById"
87-
],
88-
"requires": [
89-
{
90-
"variable": "__fusion_exports__1"
91-
}
92-
]
73+
"variable": "__fusion_exports__1"
9374
}
9475
]
9576
},

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/InterfaceTests.Selections_On_Interface_List_Field_And_Concrete_Type_Interface_Selection_Has_Dependency.md

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"authorables": [
99
{
1010
"author": {
11-
"id": "1",
11+
"id": "3",
1212
"displayName": "string"
1313
},
1414
"title": "string"
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"author": {
25-
"id": "3",
25+
"id": "1",
2626
"displayName": "string"
2727
},
2828
"title": "string"
@@ -51,7 +51,7 @@ query testQuery {
5151
## QueryPlan Hash
5252

5353
```text
54-
FE8F78F204FBA396327AB3E2F3F44563E61F9216
54+
5B15C51B0C560FDA557AEC4D18F7435E73169D29
5555
```
5656

5757
## QueryPlan
@@ -81,35 +81,16 @@ FE8F78F204FBA396327AB3E2F3F44563E61F9216
8181
]
8282
},
8383
{
84-
"type": "Parallel",
85-
"nodes": [
86-
{
87-
"type": "ResolveByKeyBatch",
88-
"subgraph": "Subgraph_2",
89-
"document": "query testQuery_2($__fusion_exports__1: [ID!]!) { authorsById(ids: $__fusion_exports__1) { displayName __fusion_exports__1: id } }",
90-
"selectionSetId": 3,
91-
"path": [
92-
"authorsById"
93-
],
94-
"requires": [
95-
{
96-
"variable": "__fusion_exports__1"
97-
}
98-
]
99-
},
84+
"type": "ResolveByKeyBatch",
85+
"subgraph": "Subgraph_2",
86+
"document": "query testQuery_2($__fusion_exports__1: [ID!]!) { authorsById(ids: $__fusion_exports__1) { displayName __fusion_exports__1: id } }",
87+
"selectionSetId": 3,
88+
"path": [
89+
"authorsById"
90+
],
91+
"requires": [
10092
{
101-
"type": "ResolveByKeyBatch",
102-
"subgraph": "Subgraph_2",
103-
"document": "query testQuery_3($__fusion_exports__1: [ID!]!) { authorsById(ids: $__fusion_exports__1) { displayName __fusion_exports__1: id } }",
104-
"selectionSetId": 3,
105-
"path": [
106-
"authorsById"
107-
],
108-
"requires": [
109-
{
110-
"variable": "__fusion_exports__1"
111-
}
112-
]
93+
"variable": "__fusion_exports__1"
11394
}
11495
]
11596
},

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/InterfaceTests.Selections_On_Interface_List_Field_Interface_Selection_Has_Dependency.md

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
"authorables": [
99
{
1010
"author": {
11-
"id": "1",
11+
"id": "3",
1212
"displayName": "string"
13-
},
13+
}
1414
},
1515
{
1616
"author": {
17-
"id": "1",
17+
"id": "2",
1818
"displayName": "string"
19-
},
19+
}
2020
},
2121
{
2222
"author": {
2323
"id": "1",
2424
"displayName": "string"
25-
},
25+
}
2626
}
2727
]
2828
}
@@ -45,7 +45,7 @@ query testQuery {
4545
## QueryPlan Hash
4646

4747
```text
48-
F4039AE7E0301C2C3A6B64A727FD0898C6ED5C3E
48+
0308D4AF6E31B24ABE6DE11C06361B922371BB60
4949
```
5050

5151
## QueryPlan
@@ -75,35 +75,16 @@ F4039AE7E0301C2C3A6B64A727FD0898C6ED5C3E
7575
]
7676
},
7777
{
78-
"type": "Parallel",
79-
"nodes": [
78+
"type": "ResolveByKeyBatch",
79+
"subgraph": "Subgraph_2",
80+
"document": "query testQuery_2($__fusion_exports__1: [ID!]!) { authorsById(ids: $__fusion_exports__1) { displayName __fusion_exports__1: id } }",
81+
"selectionSetId": 3,
82+
"path": [
83+
"authorsById"
84+
],
85+
"requires": [
8086
{
81-
"type": "ResolveByKeyBatch",
82-
"subgraph": "Subgraph_2",
83-
"document": "query testQuery_2($__fusion_exports__1: [ID!]!) { authorsById(ids: $__fusion_exports__1) { displayName __fusion_exports__1: id } }",
84-
"selectionSetId": 3,
85-
"path": [
86-
"authorsById"
87-
],
88-
"requires": [
89-
{
90-
"variable": "__fusion_exports__1"
91-
}
92-
]
93-
},
94-
{
95-
"type": "ResolveByKeyBatch",
96-
"subgraph": "Subgraph_2",
97-
"document": "query testQuery_3($__fusion_exports__1: [ID!]!) { authorsById(ids: $__fusion_exports__1) { displayName __fusion_exports__1: id } }",
98-
"selectionSetId": 3,
99-
"path": [
100-
"authorsById"
101-
],
102-
"requires": [
103-
{
104-
"variable": "__fusion_exports__1"
105-
}
106-
]
87+
"variable": "__fusion_exports__1"
10788
}
10889
]
10990
},

0 commit comments

Comments
 (0)