Codegen: Incorrect order of description in server sealed trait generation
queirosa opened this issue · comments
Antoine Q commented
I noticed a codegen problem when the result is a sealed trait:
"""TypeNameDescription"""
interface TypeName {
"""fooDescription"""
foo: AType!
}
@GQLInterface
@GQLDescription("traitDescription")
sealed trait TypeName extends scala.Product with scala.Serializable {
def @GQLDescription("description") foo : AType
}
And
def @GQLDescription("description") foo : AType
Isn't valid scala and should be :
@GQLDescription("description") def status : AType
I suspect the problem comes from :
I can solve this but I'm afraid I don't know what is the correct way relatively to the rest of the codebase.
Pierre Ricadat commented
Woops, opened a PR to fix it