Skip to content

Commit 0ba4aaa

Browse files
test: Removes TypeReferences
1 parent afd1160 commit 0ba4aaa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/GraphitiTests/PartialSchemaTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PartialSchemaTests: XCTestCase {
1212
.description("The id of the character.")
1313
Field("name", at: \.name)
1414
.description("The name of the character.")
15-
Field("friends", at: \.friends, as: [TypeReference<Character>].self)
15+
Field("friends", at: \.friends)
1616
.description(
1717
"The friends of the character, or an empty list if they have none."
1818
)
@@ -218,7 +218,7 @@ class PartialSchemaTests: XCTestCase {
218218
.description("The id of the character.")
219219
Field("name", at: \.name)
220220
.description("The name of the character.")
221-
Field("friends", at: \.friends, as: [TypeReference<Character>].self)
221+
Field("friends", at: \.friends)
222222
.description(
223223
"The friends of the character, or an empty list if they have none."
224224
)

Tests/GraphitiTests/SchemaBuilderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class SchemaBuilderTests: XCTestCase {
7070
.description("The id of the character.")
7171
Field("name", at: \.name)
7272
.description("The name of the character.")
73-
Field("friends", at: \.friends, as: [TypeReference<Character>].self)
73+
Field("friends", at: \.friends)
7474
.description(
7575
"The friends of the character, or an empty list if they have none."
7676
)

Tests/GraphitiTests/StarWarsAPI/StarWarsAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public struct StarWarsAPI: API {
2323
Field("name", at: \.name)
2424
.description("The name of the character.")
2525

26-
Field("friends", at: \.friends, as: [TypeReference<Character>].self)
26+
Field("friends", at: Character.getFriends)
2727
.description("The friends of the character, or an empty list if they have none.")
2828

2929
Field("appearsIn", at: \.appearsIn)

0 commit comments

Comments
 (0)