Skip to content

Commit

Permalink
backport of #1182
Browse files Browse the repository at this point in the history
  • Loading branch information
bbakerman committed Aug 30, 2018
1 parent 6c72aaf commit 0b5f286
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/graphql/language/InputValueDefinition.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public List<Directive> getDirectives() {
public List<Node> getChildren() {
List<Node> result = new ArrayList<>();
result.add(type);
result.add(defaultValue);
if (defaultValue != null) {
result.add(defaultValue);
}
result.addAll(directives);
return result;
}
Expand Down

0 comments on commit 0b5f286

Please sign in to comment.