@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface Mutation
public class CharacterService {
@Mutation("addCharacter")
@Description("Save a new character")
public Character save(Character character) {
//...
}
}
Schema generation of this would result in a stanza such as:
type Mutation {
"Save a new character"
addCharacter(character: CharacterInput): Character
}
public abstract String value
Copyright © 2019 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.