src/language-graphql/printer-graphql.js/printDirectives
function printDirectives(path, print, n) {
  if (n.directives.length === 0) {
    return "";
  }

  const printed = join(line, path.map(print, "directives"));

  if (n.kind === "FragmentDefinition" || n.kind === "OperationDefinition") {
    return group(concat([line, printed]));
  }

  return concat([" ", group(indent(concat([softline, printed])))]);
}