Annotation Interface GraphQLApi


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface GraphQLApi
Marks a class as a GraphQL Endpoint.

For example:
 @GraphQLApi
 @RequestScoped
 public class MembershipGraphQLApi {
     
     @Inject
     private MembershipService membershipService;
     
     @Query("memberships") 
     public List<Membership> getAllMemberships() {
         return getAllMemberships(Optional.empty());
     }
 
     // Other GraphQL queries and mutations
 }