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
When a type defines a field that requires schema mapping, graphql-java-codegen generates an API and a model of the same name, which breaks model interfaces return type.
The output is expected be a model (FolderOutput), and a concrete type is expected to implement the children API interface to resolve the children field.
packagecom.org.generated.api;
publicinterfaceFolderGetQuery {
@QueryMapping
com.org.generated.model.FolderOutput folderGet(@Argument int id);
}
Actual Result
The output is a an API, rather than a model.
packagecom.org.generated.api;
publicinterfaceFolderGetQuery {
@QueryMapping
com.org.generated.api.FolderOutput folderGet(@Argument int id);
}
Issue Description
When a type defines a field that requires schema mapping,
graphql-java-codegen
generates an API and a model of the same name, which breaks model interfaces return type.Steps to Reproduce
The following is a sample type:
Expected Result
The output is expected be a model (
FolderOutput
), and a concrete type is expected to implement the children API interface to resolve the children field.Actual Result
The output is a an API, rather than a model.
Your Environment and Setup
The text was updated successfully, but these errors were encountered: