-
- 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! }