Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
@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.Methods
public abstract String value() default "" | The argument’s name in the schema. |
public abstract String name() default "" | The argument’s name; the same as value(). |
Method details
value
public abstract String value() default ""The argument’s name in the schema. Required: a Java parameter name does
not survive compilation.
name
public abstract String name() default ""The argument’s name; the same as
value().