@Retention(value=RUNTIME) @Target(value=PARAMETER) @Documented public @interface Source
public class CharacterService { @Inject TwitterService twitterService; @Query(value = "tweets") public List <Tweet > tweets( @Source("tweetsForMe") Character character, @Name("last") int last) { return twitterService.search(character.getName(), last); } }
Schema generation of this would result in a stanza such as:
type Character { # Other fields ... tweetsForMe(last: Int): [Tweet] }
public abstract String name
Copyright © 2019 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.