Package org.eclipse.microprofile.graphql
Annotation Interface GraphQLApi
Marks a class as a GraphQL Endpoint.
For example:
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 }