Class DirectivesResolver
java.lang.Object
graphql.execution.directives.DirectivesResolver
This turns AST directives into runtime directives with resolved types and so on
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.BiMap<GraphQLDirective, Directive> resolveDirectives(List<Directive> directives, GraphQLSchema schema, CoercedVariables variables, GraphQLContext graphQLContext, Locale locale) toAppliedArgument(GraphQLArgument argument) toAppliedDirective(GraphQLDirective directive) This helps us remodel the applied GraphQLDirective back to the better modelled and namedQueryAppliedDirectivecom.google.common.collect.ImmutableList<QueryAppliedDirective> toAppliedDirectives(List<Directive> directives, GraphQLSchema schema, CoercedVariables variables, GraphQLContext graphQLContext, Locale locale)
-
Constructor Details
-
DirectivesResolver
public DirectivesResolver()
-
-
Method Details
-
resolveDirectives
public com.google.common.collect.BiMap<GraphQLDirective, Directive> resolveDirectives(List<Directive> directives, GraphQLSchema schema, CoercedVariables variables, GraphQLContext graphQLContext, Locale locale) -
toAppliedDirectives
public com.google.common.collect.ImmutableList<QueryAppliedDirective> toAppliedDirectives(List<Directive> directives, GraphQLSchema schema, CoercedVariables variables, GraphQLContext graphQLContext, Locale locale) -
toAppliedDirective
This helps us remodel the applied GraphQLDirective back to the better modelled and namedQueryAppliedDirective- Parameters:
directive- the directive to remodel- Returns:
- a QueryAppliedDirective
-
toAppliedArgument
-