Skip to content

Commit

Permalink
Squashed 'apollo-ios-codegen/' changes from 5745bd6e..378929ba
Browse files Browse the repository at this point in the history
378929ba feat(apollo-ios-codegen): Stable sort schema types for SchemaMetadata (#514)

git-subtree-dir: apollo-ios-codegen
git-subtree-split: 378929baa366b1e607fe70fb61834be036432312
  • Loading branch information
gh-action-runner authored and gh-action-runner committed Oct 21, 2024
1 parent bf4d610 commit 21e8faa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/IR/IR+Schema.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public final class Schema {
_ types: [GraphQLNamedType],
schemaRootTypes: CompilationResult.RootTypeDefinition
) {
self.allTypes = OrderedSet(types)
// Ensure allTypes is stable
self.allTypes = OrderedSet(types.sorted(by: { $0.name.schemaName < $1.name.schemaName }))
self.schemaRootTypes = schemaRootTypes

var objects = OrderedSet<GraphQLObjectType>()
Expand Down

0 comments on commit 21e8faa

Please sign in to comment.