File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
Sources/Graphiti/Definition Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ public enum Reflection {
4
4
return description. hasSuffix ( " Protocol " )
5
5
}
6
6
7
+ @available ( * , deprecated, message: " No longer used " )
7
8
public static func isEncodable( type: Any . Type ) -> Bool {
8
9
if isProtocol ( type: type) {
9
10
return true
Original file line number Diff line number Diff line change @@ -86,16 +86,6 @@ extension TypeProvider {
86
86
}
87
87
88
88
func getOutputType( from type: Any . Type , field: String ) throws -> GraphQLOutputType {
89
- // TODO: Remove this when Reflection error is fixed
90
- guard Reflection . isEncodable ( type: type) else {
91
- throw GraphQLError (
92
- message:
93
- // TODO: Add field type and use "type.field" format.
94
- " Cannot use type \" \( type) \" for field \" \( field) \" . " +
95
- " Type does not conform to \" Encodable \" . "
96
- )
97
- }
98
-
99
89
let graphQLType : GraphQLType
100
90
101
91
do {
You can’t perform that action at this time.
0 commit comments