We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f4ab62 commit 9f498faCopy full SHA for 9f498fa
Sources/GraphQL/Type/Definition.swift
@@ -973,7 +973,7 @@ public final class GraphQLInputObjectType {
973
974
public let fields: InputObjectFieldMap
975
976
- init(
+ public init(
977
name: String,
978
description: String? = nil,
979
fields: InputObjectConfigFieldMap
@@ -1049,6 +1049,12 @@ public struct InputObjectField {
1049
public let type: GraphQLInputType
1050
public let defaultValue: Map?
1051
public let description: String?
1052
+
1053
+ public init(type: GraphQLInputType, defaultValue: Map? = nil, description: String? = nil) {
1054
+ self.type = type
1055
+ self.defaultValue = defaultValue
1056
+ self.description = description
1057
+ }
1058
}
1059
1060
public typealias InputObjectConfigFieldMap = [String: InputObjectField]
0 commit comments