Annotation Interface LocalContextValue
Annotation to bind a method parameter to an attribute from the
local GraphQLContext.
To bind to an attribute from the main context instead, see
@ContextValue.
- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
Alias forname().- Default:
- ""
-
name
The name of the value to bind to.- Default:
- ""
-
required
boolean requiredWhether the value is required.Defaults to "true", leading to an exception thrown if the value is missing. Switch to "false" if you prefer
nullif the value is not present, or useOptional.- Default:
- true
-