Annotation Type Argument


@Retention(CLASS) @Target(PARAMETER) public @interface Argument
Binds one argument of a GraphQL field to this parameter of a SchemaMapping method, converted to the parameter's type. An argument the query leaves out, with no default, is null; a primitive parameter for one is a build error unless the argument is non-null in the schema.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The argument's name; the same as value().
    The argument's name in the schema.
  • Element Details

    • value

      String value
      The argument's name in the schema. Required: a Java parameter name does not survive compilation.
      Default:
      ""
    • name

      String name
      The argument's name; the same as value().
      Default:
      ""