Skip to content

Commit 458d1e9

Browse files
authored
Merge pull request #4195 from graphql-java/4190-directive-holder--to-string
#4190 - AST directives holder has a toString()
2 parents e5f21b8 + 97aba88 commit 458d1e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/graphql/language/NodeUtil.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,10 @@ ImmutableList<Directive> getDirectives(String directiveName) {
138138
boolean hasDirective(String directiveName) {
139139
return directivesByName.containsKey(directiveName);
140140
}
141+
142+
@Override
143+
public String toString() {
144+
return directives.toString();
145+
}
141146
}
142147
}

0 commit comments

Comments
 (0)