Skip to content

Commit 21e8faa

Browse files
gh-action-runnergh-action-runner
authored andcommitted
Squashed 'apollo-ios-codegen/' changes from 5745bd6e..378929ba
378929ba feat(apollo-ios-codegen): Stable sort schema types for SchemaMetadata (#514) git-subtree-dir: apollo-ios-codegen git-subtree-split: 378929baa366b1e607fe70fb61834be036432312
1 parent bf4d610 commit 21e8faa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/IR/IR+Schema.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public final class Schema {
3333
_ types: [GraphQLNamedType],
3434
schemaRootTypes: CompilationResult.RootTypeDefinition
3535
) {
36-
self.allTypes = OrderedSet(types)
36+
// Ensure allTypes is stable
37+
self.allTypes = OrderedSet(types.sorted(by: { $0.name.schemaName < $1.name.schemaName }))
3738
self.schemaRootTypes = schemaRootTypes
3839

3940
var objects = OrderedSet<GraphQLObjectType>()

0 commit comments

Comments
 (0)