@PublicApi public class IntrospectionWithDirectivesSupport extends java.lang.Object
type __Field { name: String! // other fields ... appliedDirectives: [__AppliedDirective!]! // NEW FIELD } type __AppliedDirective { // NEW INTROSPECTION TYPE name: String! args: [__DirectiveArgument!]! } type __DirectiveArgument { // NEW INTROSPECTION TYPE name: String! value: String! }
Constructor and Description |
---|
IntrospectionWithDirectivesSupport()
This version lists all directives on a schema element
|
IntrospectionWithDirectivesSupport(graphql.introspection.IntrospectionWithDirectivesSupport.DirectivePredicate directivePredicate)
This version allows you to filter what directives are listed via the provided predicate
|
Modifier and Type | Method and Description |
---|---|
GraphQLSchema |
apply(GraphQLSchema schema)
This will transform the schema to have the new extension shapes
|
public IntrospectionWithDirectivesSupport()
public IntrospectionWithDirectivesSupport(graphql.introspection.IntrospectionWithDirectivesSupport.DirectivePredicate directivePredicate)
directivePredicate
- the filtering predicate to decide what directives are shownpublic GraphQLSchema apply(GraphQLSchema schema)
schema
- the original schema