Package 

Annotation InaccessibleDirective

  • All Implemented Interfaces:

    
    public @interface InaccessibleDirective
    
                        
    directive @inaccessible on FIELD_DEFINITION
        | OBJECT
        | INTERFACE
        | UNION
        | ENUM
        | ENUM_VALUE
        | SCALAR
        | INPUT_OBJECT
        | INPUT_FIELD_DEFINITION
        | ARGUMENT_DEFINITION

    Inaccessible directive marks location within schema as inaccessible from the GraphQL Gateway. This allows you to incrementally add schema elements (e.g. fields) to multiple subgraphs without breaking composition.

    Example:

    class Product(
      val id: String,
      @InaccessibleDirective
      val secret: String
    )

    will be generated by the subgraph as

    type Product {
      id: String!
      secret: String! @inaccessible
    }

    but will exposed on the GraphQL Gateway as

    type Product {
      id: String!
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail