Annotation Type QueryMapping


@Retention(CLASS) @Target(METHOD) public @interface QueryMapping

Resolves a field of the schema's Query type with this method of a @Controller bean, as in Spring for GraphQL.

The build checks the field exists in the .graphqls files under src/main/resources/graphql, and that every Argument names one of its arguments; a mismatch is a build error. See SchemaMapping for the parameters and results a resolver may have.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The field's name; empty means the method's name.
    The field's name; empty means the method's name.
  • Element Details

    • value

      String value
      The field's name; empty means the method's name. Same as name().
      Default:
      ""
    • name

      String name
      The field's name; empty means the method's name. Same as value().
      Default:
      ""