Skip to content

Commit a65d812

Browse files
Adds GraphQLJSONEncoder to ensure ordered output
1 parent 588b7b4 commit a65d812

File tree

5 files changed

+1347
-7
lines changed

5 files changed

+1347
-7
lines changed

Sources/GraphQL/GraphQL.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Foundation
21
import NIO
32

43
public struct GraphQLResult : Equatable, Codable, CustomStringConvertible {
@@ -34,7 +33,7 @@ public struct GraphQLResult : Equatable, Codable, CustomStringConvertible {
3433
}
3534

3635
public var description: String {
37-
let data = try! JSONEncoder().encode(self)
36+
let data = try! GraphQLJSONEncoder().encode(self)
3837
return String(data: data, encoding: .utf8)!
3938
}
4039
}

0 commit comments

Comments
 (0)