@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface SchemaMapping
You can use this annotation both at the method and at the class level, in which case all handlers methods inherit the class-level typeName by default unless overridden at the method level.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
field
Customize the name of the GraphQL field to bind to.
|
java.lang.String |
typeName
Customizes the name of the source/parent type for the GraphQL field.
|
java.lang.String |
value
Effectively an alias for
field(). |
@AliasFor(value="value") public abstract java.lang.String field
By default, if not specified, this is initialized from the method name.
@AliasFor(value="field") public abstract java.lang.String value
field().public abstract java.lang.String typeName
By default, if not specified, it is derived from the class name of a
source argument injected into
the handler method.
This attributed is supported at the class level and at the method level! When used on both levels, the one on the method level overrides the one at the class level.