Skip to content

Commit 19dfcb0

Browse files
test: Fixes schema to not use type reference
1 parent ec74172 commit 19dfcb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/GraphQLTests/ValidationTests/ExampleSchema.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ let ValidationExampleCanine = try! GraphQLInterfaceType(
7272
args: ["surname": GraphQLArgument(type: GraphQLBoolean)]
7373
),
7474
"mother": GraphQLField(
75-
type: GraphQLTypeReference("Mammal")
75+
type: ValidationExampleMammal
7676
),
7777
"father": GraphQLField(
78-
type: GraphQLTypeReference("Mammal")
78+
type: ValidationExampleMammal
7979
),
8080
],
8181
resolveType: { _, _, _ in
@@ -176,14 +176,14 @@ let ValidationExampleDog = try! GraphQLObjectType(
176176
}
177177
),
178178
"mother": GraphQLField(
179-
type: GraphQLTypeReference("Mammal"),
179+
type: ValidationExampleMammal,
180180
resolve: { inputValue, _, _, _ -> String? in
181181
print(type(of: inputValue))
182182
return nil
183183
}
184184
),
185185
"father": GraphQLField(
186-
type: GraphQLTypeReference("Mammal"),
186+
type: ValidationExampleMammal,
187187
resolve: { inputValue, _, _, _ -> String? in
188188
print(type(of: inputValue))
189189
return nil

0 commit comments

Comments
 (0)