@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Query
public class CharacterService {
@Query("friendsOf")
@Description("Returns all the friends of a character")
public List <Character > getFriendsOf(Character character) {
//...
}
}
Schema generation of this would result in a stanza such as:
type Query {
"Returns all the friends of a character"
friendsOf(character: CharacterInput): [Character]
}
public abstract String value
Copyright © 2019 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.