Das135
07/20/2020, 9:05 AM.wrapRow
etc..
object TableObject : IdTable<Int>("tableName") {
val property1 = long("column1")
val property2 = long("column2")
}
class MappedEntity(id: EntityID<Int>): Entity<Int>(id){
companion object : EntityClass<Int, MappedEntity>(TableObject)
var entityProperty1 by TableObject.property1
var entityProperty2 by TableObject.property2
}
I want to return MappedEntity
in GraphQL schema, but there is problem with com.expediagroup.graphql.exceptions.TypeNotSupportedException: Cannot convert org.jetbrains.exposed.sql.ResultRow? since it is not a valid GraphQL type or outside the supported packages
.
Do I need to map this entity to another class, or is there way to use MappedEntity class in GraphQL schema?Dariusz Kuc
07/20/2020, 1:24 PM@GraphQLIgnore
but that implies they have to be part of your code baseRobert
07/24/2020, 12:20 PM