package com.codename1.annotations.graphql

Annotations for declaring type safe GraphQL clients.

A client interface is marked with GraphQLClient and its methods are mapped to GraphQL operations using Query, Mutation and Subscription, while Var binds method parameters to GraphQL variables. These annotations are consumed by the Codename One GraphQL client generator to produce the network implementation.

Types

annotation GraphQLClientMarks an interface as a GraphQL client that the build-time annotation processor wires up to a generated implementation.
annotation MutationDeclares a GraphQLClient method as a GraphQL mutation.
annotation QueryDeclares a GraphQLClient method as a GraphQL query.
annotation SubscriptionDeclares a GraphQLClient method as a GraphQL subscription, streamed over a WebSocket using the graphql-transport-ws protocol.
annotation VarBinds a GraphQLClient method parameter to a GraphQL operation variable.