Skip to content

Commit 9e3bfab

Browse files
committed
Refined Operation Name Generation
1 parent c1396be commit 9e3bfab

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/HotChocolate/Fusion/src/Core/Planning/QueryPlanContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public QueryPlan BuildQueryPlan()
186186

187187
private static string CreateOperationName(IOperation operation)
188188
{
189-
const string prefix = "Fetch";
189+
const string prefix = "fetch";
190190

191191
if (operation.RootSelectionSet.Selections.Count == 1)
192192
{

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/DemoIntegrationTests.Forward_Nested_Variables_No_OpName.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ QueryPlan
1818
{
1919
"type": "Resolve",
2020
"subgraph": "Products",
21-
"document": "query Fetch_productById_1($first: Int!, $id: ID!) { productById(id: $id) { id repeat(num: $first) } }",
21+
"document": "query fetch_productById_1($first: Int!, $id: ID!) { productById(id: $id) { id repeat(num: $first) } }",
2222
"selectionSetId": 0,
2323
"forwardedVariables": [
2424
{
@@ -42,7 +42,7 @@ QueryPlan
4242

4343
QueryPlan Hash
4444
---------------
45-
85A19A549D90435E0F0FD21E213D4A19CC5BEF9D
45+
361C327571AE2F6013116F6DBD44EBDB241DA154
4646
---------------
4747

4848
Result

src/HotChocolate/Fusion/test/Core.Tests/__snapshots__/DemoIntegrationTests.Forward_Nested_Variables_No_OpName_Two_RootSelections.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ QueryPlan
2222
{
2323
"type": "Resolve",
2424
"subgraph": "Products",
25-
"document": "query Fetch_a_b_1($first: Int!, $id: ID!) { a: productById(id: $id) { id repeat(num: $first) } b: productById(id: $id) { id repeat(num: $first) } }",
25+
"document": "query fetch_a_b_1($first: Int!, $id: ID!) { a: productById(id: $id) { id repeat(num: $first) } b: productById(id: $id) { id repeat(num: $first) } }",
2626
"selectionSetId": 0,
2727
"forwardedVariables": [
2828
{
@@ -46,7 +46,7 @@ QueryPlan
4646

4747
QueryPlan Hash
4848
---------------
49-
8E82B6AB23160BEE6023655E741703002D4EAA36
49+
0B9DDBAE987F3EF0FF2163307F2744D756A81213
5050
---------------
5151

5252
Result

0 commit comments

Comments
 (0)