You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have come across the following issue... I have a controller that returns a typed class (DataRep) and in this class there is a collection of T.
Can you show the Query type in the schema? In other words, what the output type for the getGenerosPag query is, and how DataResp<Genero> is mapped to that.
type Genero {
id: Int
descripcion: String
}
type PagGenero {
totalFilas: Int
filasPorPagina: Int
numeroDePagina: Int
totalPaginas: Int
listado: [Genero]
msj: String
}
extend type Query {
getGenerosPag(dataReq: GeneroDataReqInput): PagGenero
}
The type PagGenero is assigned to the returned class DataResp< T >, where the type Genero is assigned to the parameter class T.
rstoyanchev
changed the title
Schema inspection report skips types when controller returns generic class
Schema inspection reports skipped type when field is mapped to property with generic type
Sep 5, 2024
Uh oh!
There was an error while loading. Please reload this page.
Hello, I have come across the following issue... I have a controller that returns a typed class (DataRep) and in this class there is a collection of T.
Here is the schema definition:
Here is the controller:
And here is the class returned DataResp:
Everything works fine, but the inspection report cannot recognize the type of the collection and reports Genero as a skipped type:
Is there a way to make introspection recognize this mapping between the collection declared in the schema and the one returned? thank you in advance
The text was updated successfully, but these errors were encountered: