From 4f56e592da1e5e897721f23681d42f11146f3337 Mon Sep 17 00:00:00 2001 From: DanielZuerrer Date: Wed, 1 May 2024 17:23:57 +0200 Subject: [PATCH] Use SortedDictionary for consistent order of persisted queries when writing relay format (#7078) Co-authored-by: Michael Staib --- .../Tooling/src/dotnet-graphql/GenerateCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StrawberryShake/Tooling/src/dotnet-graphql/GenerateCommand.cs b/src/StrawberryShake/Tooling/src/dotnet-graphql/GenerateCommand.cs index ba4df5a11a2..175b6785627 100644 --- a/src/StrawberryShake/Tooling/src/dotnet-graphql/GenerateCommand.cs +++ b/src/StrawberryShake/Tooling/src/dotnet-graphql/GenerateCommand.cs @@ -209,7 +209,7 @@ private static async Task WritePersistedQueriesAsync( { if (relayFormat) { - var map = new Dictionary(); + var map = new SortedDictionary(); foreach (var doc in result.Documents) {