public class QueryDirectivesImpl extends java.lang.Object implements QueryDirectives
Constructor and Description |
---|
QueryDirectivesImpl(MergedField mergedField,
GraphQLSchema schema,
java.util.Map<java.lang.String,java.lang.Object> variables) |
Modifier and Type | Method and Description |
---|---|
java.util.List<GraphQLDirective> |
getImmediateDirective(java.lang.String directiveName)
This will return a list of the named directives that are immediately on this merged field.
|
java.util.Map<Field,java.util.List<GraphQLDirective>> |
getImmediateDirectivesByField()
This will return a map of the
Field s inside a MergedField
and the immediate directives that are on each specific field |
java.util.Map<java.lang.String,java.util.List<GraphQLDirective>> |
getImmediateDirectivesByName()
This will return a map of the directives that are immediately on a merged field
|
public QueryDirectivesImpl(MergedField mergedField, GraphQLSchema schema, java.util.Map<java.lang.String,java.lang.Object> variables)
public java.util.Map<Field,java.util.List<GraphQLDirective>> getImmediateDirectivesByField()
QueryDirectives
Field
s inside a MergedField
and the immediate directives that are on each specific fieldgetImmediateDirectivesByField
in interface QueryDirectives
public java.util.Map<java.lang.String,java.util.List<GraphQLDirective>> getImmediateDirectivesByName()
QueryDirectives
getImmediateDirectivesByName
in interface QueryDirectives
public java.util.List<GraphQLDirective> getImmediateDirective(java.lang.String directiveName)
QueryDirectives
getImmediateDirective
in interface QueryDirectives
directiveName
- the named directive