Package com.codename1.annotations.graphql
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.
-
Annotation TypesClassDescriptionMarks an interface as a GraphQL client that the build-time annotation processor wires up to a generated implementation.Declares a
GraphQLClientmethod as a GraphQL mutation.Declares aGraphQLClientmethod as a GraphQL query.Declares aGraphQLClientmethod as a GraphQL subscription, streamed over a WebSocket using thegraphql-transport-wsprotocol.Binds aGraphQLClientmethod parameter to a GraphQL operation variable.