Dusan Hornik
10/21/2021, 5:53 AMcom.expediagroup.graphql.exceptions.TypeNotSupportedException: Cannot convert T since it is not a valid GraphQL type or outside the supported packages
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)
Is there a recommended way to design this?Dariusz Kuc
10/21/2021, 9:55 PMPage
flavors (i.e. StudentPage
instead of generic Page<T>
)Dusan Hornik
10/22/2021, 12:17 AM