Class QueryAppliedDirective

java.lang.Object
graphql.execution.directives.QueryAppliedDirective

@PublicApi public class QueryAppliedDirective extends Object
An applied directive represents the instance of a directive that is applied to a query element such as a field or fragment.

Originally graphql-java re-used the GraphQLDirective and GraphQLArgument classes to do both purposes. This was a modelling mistake. New QueryAppliedDirective and QueryAppliedDirectiveArgument classes have been introduced to better model when a directive is applied to a query element, as opposed to its schema definition itself.

See https://graphql.org/learn/queries/#directives for more details on the concept.