@Retention(CLASS) @Target({PARAMETER})
public @interface Var
Binds a
GraphQLClient method parameter to a GraphQL operation
variable. The value() is the variable name as it appears (without
the $) in the operation document’s variable definitions. The
argument is serialised into the request’s variables object:
strings/numbers/booleans/lists/maps pass through directly, enums
serialise as their name(), and any other object is treated as an
@Mapped business object. A null argument omits the variable.Methods
public abstract String value() | The GraphQL variable name (without the leading $). |
Method details
value
public abstract String value()The GraphQL variable name (without the leading
$).