Annotation Type GraphQLClientApi
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface GraphQLClientApi
Annotate your GraphQL ClientinterfaceasGraphQLClientApi, so CDI can build and inject it for you.Example:
@GraphQLClientApi public interface SuperHeroesApi { List<Hero> allHeroes(); } @Inject SuperHeroesApi superHeroesApi;You can optionally add some fallback configuration with this annotation.