graphql-java-annotations: Argument must be annotated with @GraphQLName, otherwise it would fail

425 views Asked by At

If i don't add @GraphQLName("name"), then method would not be recognized correctly! (version: 0.13.2)

@GraphQLField
@GraphQLDataFetcher(MyDataFetcher.class)
public String findByName(@GraphQLName("name") String name){
    return null;
}
1

There are 1 answers

0
JasonS On BEST ANSWER

You need to compile your class with following javac option: -parameters

More detailed you could refer my submitted issue on Github.