sangria icon indicating copy to clipboard operation
sangria copied to clipboard

GraphQLDeprecated annotation doesn't work with scala trait fields

Open vivekdhayaal opened this issue 5 years ago • 0 comments

trait t1 { @GraphQLDeprecated("Renamed as 'f2' in release r2; To be removed in r3") def f1: String def f2: Option[String] }

The "GraphQLDeprecated" doesn't deprecate the annotated trait field f1.

I could not find a test with 'GraphQLDeprecated' annotation in trait fields. I could see case class fields annotated 'GraphQLDeprecated' though. https://github.com/sangria-graphql/sangria/search?q=GraphQLDeprecated&unscoped_q=GraphQLDeprecated

vivekdhayaal avatar May 02 '19 12:05 vivekdhayaal