Skip to content

Commit

Permalink
Merge pull request #114 from marwan-at-work/dirdoc
Browse files Browse the repository at this point in the history
add directive docs to formatter
  • Loading branch information
vektah authored Jan 7, 2020
2 parents 6b4a785 + fbc9893 commit 1315dba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions formatter/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ func (f *formatter) FormatDirectiveDefinition(def *ast.DirectiveDefinition) {
}
}

f.WriteDescription(def.Description)
f.WriteWord("directive").WriteString("@").WriteWord(def.Name)

if len(def.Arguments) != 0 {
Expand Down

0 comments on commit 1315dba

Please sign in to comment.