Annotation Type Tag


  • @Retention(RUNTIME)
    @Description("Applies arbitrary string metadata to a schema location. Custom tooling can use this metadata during any step of the schema delivery flow, including composition, static analysis, and documentation. Apollo Studio\'s enterprise contracts feature uses @tag with its inclusion and exclusion filters.")
    @Experimental("SmallRye GraphQL Federation is still subject to change.")
    @Repeatable(Tags.class)
    public @interface Tag
    directive @tag(name: String!) repeatable on FIELD_DEFINITION | INTERFACE | OBJECT | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
    See Also:
    federation spec
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      @NonNull String name  
    • Element Detail

      • name

        @NonNull
        @Description("The tag name to apply.")
        @NonNull String name