We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80fae9f commit 2f96b9fCopy full SHA for 2f96b9f
admin/sortConf.mjs
@@ -1,5 +1,5 @@
1
-import fs from 'node:fs';
2
import assert from 'node:assert/strict';
+import fs from 'node:fs';
3
4
const sortConf = conf => {
5
const indices = conf.indices;
@@ -15,7 +15,7 @@ const sortConf = conf => {
15
.filter(m => m.graphqlField === x)
16
.map(x => x.field)
17
.sort()
18
- .map(x => ({ ...mutations.find(m => m.field === x) }));
+ .map(y => ({ ...mutations.find(m => m.field === y && m.graphqlField === x) }));
19
return [...xs, ...elWithSameGqlField];
20
}, []);
21
0 commit comments