printDirective method

String printDirective(
  1. GraphQLDirective directive
)

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(' | ');
}