@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface GraphQLClientApi
interface as GraphQLClientApi,
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.Copyright © 2018–2021. All rights reserved.