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 GraphQLClient | Marks an interface as a GraphQL client that the build-time annotation processor wires up to a generated implementation. |
annotation Mutation | Declares a GraphQLClient method as a GraphQL mutation. |
annotation Query | Declares a GraphQLClient method as a GraphQL query. |
annotation Subscription | Declares a GraphQLClient method as a GraphQL subscription, streamed over a WebSocket using the graphql-transport-ws protocol. |
annotation Var | Binds a GraphQLClient method parameter to a GraphQL operation variable. |