Annotation Interface DgsQuery


@Target(METHOD) @Retention(RUNTIME) @Inherited public @interface DgsQuery
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    boolean
    Indicates whether the generated DataFetcher for this method should be considered trivial.
  • Element Details

    • field

      @AliasFor(annotation=DgsData.class) String field
      Default:
      ""
    • trivial

      @AliasFor(annotation=DgsData.class) boolean trivial
      Indicates whether the generated DataFetcher for this method should be considered trivial. For instance, if a method is simply pulling data from an object and not doing any I/O, there may be some performance benefits to marking it as trivial.
      See Also:
      • TrivialDataFetcher
      Default:
      false