File tree 1 file changed +2
-16
lines changed
1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -678,14 +678,7 @@ public struct GraphQLArgumentDefinition {
678
678
) {
679
679
self . name = name
680
680
self . type = type
681
-
682
- self . defaultValue = try ? defaultValue. flatMap {
683
- String (
684
- data: try JSONEncoder ( ) . encode ( $0) ,
685
- encoding: . utf8
686
- )
687
- }
688
-
681
+ self . defaultValue = defaultValue? . description
689
682
self . description = description
690
683
}
691
684
}
@@ -1266,14 +1259,7 @@ public struct InputObjectField {
1266
1259
1267
1260
public init ( type: GraphQLInputType , defaultValue: Map ? = nil , description: String ? = nil ) {
1268
1261
self . type = type
1269
-
1270
- self . defaultValue = try ? defaultValue. flatMap {
1271
- String (
1272
- data: try JSONEncoder ( ) . encode ( $0) ,
1273
- encoding: . utf8
1274
- )
1275
- }
1276
-
1262
+ self . defaultValue = defaultValue? . description
1277
1263
self . description = description
1278
1264
}
1279
1265
}
You can’t perform that action at this time.
0 commit comments