Skip to content

Commit 3f69e08

Browse files
author
BURJA Lucian
committed
Fix syntax error in schema
1 parent c694d1a commit 3f69e08

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/kotlin/graphql/kickstart/tools/RelayConnectionTest.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class RelayConnectionTest {
1818

1919
@Test
2020
fun `should compile relay schema when not using @connection directive`() {
21+
// Note: in addition to testing that a relay schema compiles without the @connection directive,
22+
// this test also verifies that a custom @uppercase directive works as expected
2123
val schema = SchemaParser.newParser().schemaString("""
2224
directive @uppercase on FIELD_DEFINITION
2325
@@ -40,7 +42,9 @@ class RelayConnectionTest {
4042
name: String @uppercase
4143
}
4244
43-
type PageInfo
45+
type PageInfo {
46+
hasNextPage: Boolean
47+
}
4448
4549
type AnotherTypeConnection {
4650
edges: [AnotherTypeEdge!]!

0 commit comments

Comments
 (0)