File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
main/kotlin/com/coxautodev/graphql/tools/relay
test/java/com/coxautodev/graphql/tools Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ class RelayConnectionFactory : TypeDefinitionFactory {
7171 .name(" PageInfo" )
7272 .fieldDefinition(FieldDefinition (" hasPreviousPage" , NonNullType (TypeName (" Boolean" ))))
7373 .fieldDefinition(FieldDefinition (" hasNextPage" , NonNullType (TypeName (" Boolean" ))))
74+ .fieldDefinition(FieldDefinition (" startCursor" , TypeName (" String" )))
75+ .fieldDefinition(FieldDefinition (" endCursor" , TypeName (" String" )))
7476 .build()
7577
7678 private fun Directive.forTypeName (): String {
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ public String call() {
4444 " pageInfo {\n " +
4545 " hasPreviousPage,\n " +
4646 " hasNextPage\n " +
47+ " startCursor\n " +
48+ " endCursor\n " +
4749 " }\n " +
4850 " }\n " +
4951 "}" ;
You can’t perform that action at this time.
0 commit comments