Annotation Type Var


@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.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The GraphQL variable name (without the leading $).
  • Element Details

    • value

      String value
      The GraphQL variable name (without the leading $).