Hello, I am trying to implement some basic pagination and it seems like I should be using generics, but that doesn’t generate graphql schema:
Copy code
com.expediagroup.graphql.exceptions.TypeNotSupportedException: Cannot convert T since it is not a valid GraphQL type or outside the supported packages
Code:
Copy code
class MyQuery: Query {}
suspend fun students(pageNumber:Int): Page<Student> {
return getStudents(pageNumber)
}
}
data class Page<T>(val items: List<T>, pageNumber: Int)
data class Student(val name: String)