printDirective method
Implementation
String printDirective(GraphQLDirective directive) {
return printDescription(directive.description) +
'directive @' +
directive.name +
printArgs(directive.inputs) +
(directive.isRepeatable ? ' repeatable' : '') +
' on ' +
directive.locations.map((loc) => loc.toJson()).join(' | ');
}