Skip to content

Commit bc36a09

Browse files
fix: Types are ordered
1 parent 6aa6a6b commit bc36a09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/GraphQL/Type/Schema.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import OrderedCollections
2+
13
/**
24
* Schema Definition
35
*
@@ -229,7 +231,7 @@ extension GraphQLSchema: Encodable {
229231
}
230232
}
231233

232-
public typealias TypeMap = [String: GraphQLNamedType]
234+
public typealias TypeMap = OrderedDictionary<String, GraphQLNamedType>
233235

234236
public struct InterfaceImplementations {
235237
public let objects: [GraphQLObjectType]

0 commit comments

Comments
 (0)