diff --git a/packages/graphql-mesh/patches/@graphql-mesh+merger-stitching+0.96.3.patch b/packages/graphql-mesh/patches/@graphql-mesh+merger-stitching+0.96.3.patch index a55a65d..6f3f5b4 100644 --- a/packages/graphql-mesh/patches/@graphql-mesh+merger-stitching+0.96.3.patch +++ b/packages/graphql-mesh/patches/@graphql-mesh+merger-stitching+0.96.3.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/@graphql-mesh/merger-stitching/cjs/index.js b/node_modules/@graphql-mesh/merger-stitching/cjs/index.js -index 381e473..951f14d 100644 +index 381e473..0f7ecb2 100644 --- a/node_modules/@graphql-mesh/merger-stitching/cjs/index.js +++ b/node_modules/@graphql-mesh/merger-stitching/cjs/index.js @@ -1,5 +1,17 @@ @@ -20,7 +20,7 @@ index 381e473..951f14d 100644 const stitch_1 = require("@graphql-tools/stitch"); class StitchingMerger { constructor(options) { -@@ -42,6 +54,12 @@ class StitchingMerger { +@@ -42,6 +54,24 @@ class StitchingMerger { }, }), }); @@ -29,6 +29,18 @@ index 381e473..951f14d 100644 + Object.keys(unifiedSchema._typeMap).forEach((type) => { + unifiedSchema._typeMap[type]._fields = sortKeys(unifiedSchema._typeMap[type]._fields); + }); ++ // Sort query inputs alphabetically ++ Object.keys(unifiedSchema._typeMap.Query._fields).forEach((field) => { ++ if (unifiedSchema._typeMap.Query._fields[field].args) { ++ unifiedSchema._typeMap.Query._fields[field].args = unifiedSchema._typeMap.Query._fields[field].args.sort((a,b) => a.name.localeCompare(b.name)) ++ } ++ }) ++ // Sort mutation inputs alphabetically ++ Object.keys(unifiedSchema._typeMap.Mutation._fields).forEach((field) => { ++ if (unifiedSchema._typeMap.Mutation._fields[field].args) { ++ unifiedSchema._typeMap.Mutation._fields[field].args = unifiedSchema._typeMap.Mutation._fields[field].args.sort((a,b) => a.name.localeCompare(b.name)) ++ } ++ }) + return { schema: unifiedSchema,