Annotation Type GraphQLEnvironment


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface GraphQLEnvironment
    Marks a parameter representing a value injected from the current execution environment. Currently, the annotated parameter is allowed to be of the following types:
    1. Set<String> - Injects the list of names of requested direct sub-fields
    2. Field - Injects the AST Field currently being resolved
    3. List<Field> - Injects all the AST Fields on the current level
    4. ValueMapper - Injects a ValueMapper appropriate for the current resolver
    5. ResolutionEnvironment - Injects the entire ResolutionEnvironment